Added a prompt in the left frame fast filter that prompts the user on what to do, goes away when the field is focused on
This commit is contained in:
@@ -187,6 +187,11 @@ function clear_fast_filter() {
|
|||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
/* Display filter */
|
/* Display filter */
|
||||||
$('#NavFilter').css('display', 'inline');
|
$('#NavFilter').css('display', 'inline');
|
||||||
|
$('input[id="fast_filter"]').focus(function() {
|
||||||
|
if($(this).attr("value") === "filter tables by name") {
|
||||||
|
clear_fast_filter();
|
||||||
|
}
|
||||||
|
});
|
||||||
$('#clear_fast_filter').click(clear_fast_filter);
|
$('#clear_fast_filter').click(clear_fast_filter);
|
||||||
$('#fast_filter').focus(function (evt) {evt.target.select();});
|
$('#fast_filter').focus(function (evt) {evt.target.select();});
|
||||||
$('#fast_filter').keyup(function (evt) {fast_filter(evt.target.value);});
|
$('#fast_filter').keyup(function (evt) {fast_filter(evt.target.value);});
|
||||||
|
@@ -289,7 +289,7 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
|
|||||||
if ($table_count) {
|
if ($table_count) {
|
||||||
?>
|
?>
|
||||||
<span id="NavFilter">
|
<span id="NavFilter">
|
||||||
<input type="text" name="fast_filter" id="fast_filter" title="<?php echo __('Filter'); ?>" />
|
<input type="text" name="fast_filter" id="fast_filter" title="<?php echo __('Filter'); ?>" value="filter tables by name" />
|
||||||
<span id="clear_fast_filter" title="<?php echo __('Clear'); ?>">X</span>
|
<span id="clear_fast_filter" title="<?php echo __('Clear'); ?>">X</span>
|
||||||
</span>
|
</span>
|
||||||
<?php
|
<?php
|
||||||
|
Reference in New Issue
Block a user