Permalink
Browse files

Add search condition after inputting value

  • Loading branch information...
1 parent 0f1c2c2 commit de056d41c2eae27230f5d4b1606d8576734dfaaa @vrana committed Aug 26, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 adminer/include/adminer.inc.php
  2. +2 −2 editor/include/adminer.inc.php
@@ -238,9 +238,9 @@ function selectSearchPrint($where, $columns, $indexes) {
$i++;
}
}
- echo "<div><select name='where[$i][col]' onchange='selectAddRow(this);'><option value=''>(" . lang('anywhere') . ")" . optionlist($columns, null, true) . "</select>";
+ echo "<div><select name='where[$i][col]' onchange='this.nextSibling.nextSibling.onchange();'><option value=''>(" . lang('anywhere') . ")" . optionlist($columns, null, true) . "</select>";
echo html_select("where[$i][op]", $this->operators, "=");
- echo "<input name='where[$i][val]'></div>\n";
+ echo "<input name='where[$i][val]' onchange='selectAddRow(this);'></div>\n";
echo "</div></fieldset>\n";
}
@@ -227,9 +227,9 @@ function selectSearchPrint($where, $columns, $indexes) {
$i++;
}
}
- echo "<div><select name='where[$i][col]' onchange='selectAddRow(this);'><option value=''>(" . lang('anywhere') . ")" . optionlist($columns, null, true) . "</select>";
+ echo "<div><select name='where[$i][col]' onchange='this.nextSibling.nextSibling.onchange();'><option value=''>(" . lang('anywhere') . ")" . optionlist($columns, null, true) . "</select>";
echo html_select("where[$i][op]", array(-1 => "") + $this->operators);
- echo "<input name='where[$i][val]'></div>\n";
+ echo "<input name='where[$i][val]' onchange='selectAddRow(this);'></div>\n";
echo "</div></fieldset>\n";
}

0 comments on commit de056d4

Please sign in to comment.