diff options
author | Andrew Dolgov <[email protected]> | 2008-08-07 04:17:24 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-08-07 04:17:24 +0100 |
commit | 143a497306aea0198c1dae4c03ac8ca344e37f55 (patch) | |
tree | 5041e1b56530c9b6a75fd409e90b0d29b7b1f9f1 /modules/pref-filters.php | |
parent | 8df9005793f1faad35022509a4a3d1ddfe63c2aa (diff) |
dialog layout tweaks
Diffstat (limited to 'modules/pref-filters.php')
-rw-r--r-- | modules/pref-filters.php | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/modules/pref-filters.php b/modules/pref-filters.php index 3946be5f3..05d2fb6af 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -74,12 +74,15 @@ print "</select>"; - print " " . __("with params") . " "; + $param_hidden = ($action_id == 4 || $action_id == 6) ? "" : "display : none"; - $param_disabled = ($action_id == 4 || $action_id == 6) ? "" : "disabled"; + print "<span id=\"filter_dlg_param_box\" style=\"$param_hidden\">"; + print " " . __("with parameters:") . " "; + print "<input size=\"20\" + name=\"action_param\" value=\"$action_param\">"; + print "</span>"; - print "<input $param_disabled size=\"20\" - name=\"action_param\" value=\"$action_param\">"; + print " "; // tiny layout hack print "</div>"; @@ -111,6 +114,14 @@ print "<div class=\"dlgButtons\">"; + $reg_exp = htmlspecialchars($reg_exp); // second escaping seems to be needed for javascript + + print "<div style=\"float : left\">"; + print "<input type=\"submit\" + class=\"button\" onclick='return removeFilter($filter_id, \"$reg_exp\")' + value=\"".__('Remove')."\"> "; + print "</div>"; + print "<input type=\"submit\" id=\"infobox_submit\" class=\"button\" onclick=\"return filterEditSave()\" @@ -120,14 +131,6 @@ type=\"submit\" onclick=\"return filterEditCancel()\" value=\"".__('Cancel')."\">"; - $reg_exp = htmlspecialchars($reg_exp); // second escaping seems to be needed for javascript - - print "<div style=\"float : left\">"; - print "<input type=\"submit\" - class=\"button\" onclick='return removeFilter($filter_id, \"$reg_exp\")' - value=\"".__('Remove')."\"> "; - print "</div>"; - print "</div>"; return; |