Styling remove button search fields
This commit is contained in:
parent
bc577cfb1e
commit
95eed201b6
2 changed files with 5 additions and 4 deletions
adminer
|
@ -372,7 +372,7 @@ class Adminer {
|
|||
. on_help("getTarget(event).value && getTarget(event).value.replace(/ |\$/, '(') + ')'", 1)
|
||||
. script("qsl('select').onchange = function () { helpClose();" . ($key !== "" ? "" : " qsl('select, input', this.parentNode).onchange();") . " };", "")
|
||||
. "($column)" : $column)
|
||||
. ' <button type="button" class="jsonly" title="', h(lang('remove')), '">x</button>'
|
||||
. ' <button type="button" class="jsonly" title="', h(lang('Remove')), '">x</button>'
|
||||
. script('qsl("button").onclick = selectRemoveRow;', "")
|
||||
. "</div>\n";
|
||||
$i++;
|
||||
|
@ -410,7 +410,7 @@ class Adminer {
|
|||
echo html_select("where[$i][op]", $this->operators, $val["op"], $change_next);
|
||||
echo "<input type='search' name='where[$i][val]' value='" . h($val["val"]) . "'>";
|
||||
echo script("mixin(qsl('input'), {oninput: function () { $change_next }, onkeydown: selectSearchKeydown, onsearch: selectSearchSearch});", "");
|
||||
echo '<button type="button" class="jsonly" title="', h(lang('remove')), '">x</button>';
|
||||
echo '<button type="button" class="jsonly" title="', h(lang('Remove')), '">x</button>';
|
||||
echo script('qsl("button").onclick = selectRemoveRow;', "");
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
@ -431,7 +431,7 @@ class Adminer {
|
|||
if ($val != "") {
|
||||
echo "<div>" . select_input(" name='order[$i]'", $columns, $val, "selectFieldChange");
|
||||
echo checkbox("desc[$i]", 1, isset($_GET["desc"][$key]), lang('descending'));
|
||||
echo ' <button type="button" class="jsonly" title="', h(lang('remove')), '">x</button>';
|
||||
echo ' <button type="button" class="jsonly" title="', h(lang('Remove')), '">x</button>';
|
||||
echo script('qsl("button").onclick = selectRemoveRow;', "");
|
||||
echo "</div>\n";
|
||||
$i++;
|
||||
|
@ -439,7 +439,7 @@ class Adminer {
|
|||
}
|
||||
echo "<div>" . select_input(" name='order[$i]'", $columns, "", "selectAddRow");
|
||||
echo checkbox("desc[$i]", 1, false, lang('descending'));
|
||||
echo ' <button type="button" class="jsonly" title="', h(lang('remove')), '">x</button>';
|
||||
echo ' <button type="button" class="jsonly" title="', h(lang('Remove')), '">x</button>';
|
||||
echo script('qsl("button").onclick = selectRemoveRow;', "");
|
||||
echo "</div>\n";
|
||||
echo "</div></fieldset>\n";
|
||||
|
|
|
@ -34,6 +34,7 @@ select { border-radius: 5px; padding: 2px; vertical-align: middle;; }
|
|||
fieldset label input[type='checkbox'] { margin-bottom: 6px; }
|
||||
fieldset a { line-height: 20px; }
|
||||
#fieldset-select div:last-child > button, #fieldset-search div:last-child > button, #fieldset-sort div:last-child > button { display: none; }
|
||||
#fieldset-select button, #fieldset-search button, #fieldset-sort button { width: 16px; height: 16px; margin-bottom: 8px; line-height: 8px; border: 0px; }
|
||||
span.separator { margin-left: 5px; margin-right: 5px; }
|
||||
.block { display: block; }
|
||||
.version { color: #777; font-size: 50%; }
|
||||
|
|
Loading…
Add table
Reference in a new issue