mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 01:24:17 +02:00
Autohide column context menu in select
This commit is contained in:
@@ -274,11 +274,14 @@ if (!$columns) {
|
||||
$rank++;
|
||||
$names[$key] = $name;
|
||||
$href = remove_from_uri('(order|desc)[^=]*|page') . '&order%5B0%5D=' . urlencode($key);
|
||||
echo '<th><a href="' . h($href) . '">' . (!$select || $val ? apply_sql_function($val["fun"], $name) : h(current($select))) . "</a>"; //! columns looking like functions
|
||||
echo '<th onmouseover="columnMouse(this);" onmouseout="columnMouse(this, \' hidden\');">';
|
||||
echo '<a href="' . h($href) . '">' . (!$select || $val ? apply_sql_function($val["fun"], $name) : h(current($select))) . "</a>"; //! columns looking like functions
|
||||
echo "<span class='column hidden'>";
|
||||
echo "<a href='" . h("$href&desc%5B0%5D=1") . "' title='" . lang('descending') . "' class='text'> ↓</a>";
|
||||
if (!$val["fun"]) {
|
||||
echo '<a href="#fieldset-search" onclick="selectSearch(\'' . h(js_escape($key)) . '\'); return false;" title="' . lang('Search') . '" class="text jsonly"> =</a>';
|
||||
}
|
||||
echo "</span>";
|
||||
}
|
||||
$functions[$key] = $val["fun"];
|
||||
next($select);
|
||||
|
Reference in New Issue
Block a user