From 143a497306aea0198c1dae4c03ac8ca344e37f55 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 7 Aug 2008 04:17:24 +0100 Subject: [PATCH] dialog layout tweaks --- functions.js | 8 ++++---- modules/popup-dialog.php | 9 ++++++--- modules/pref-feeds.php | 11 ++++------- modules/pref-filters.php | 27 +++++++++++++++------------ 4 files changed, 29 insertions(+), 26 deletions(-) diff --git a/functions.js b/functions.js index 17aaa238..dd7f51ea 100644 --- a/functions.js +++ b/functions.js @@ -1506,18 +1506,18 @@ function filterDlgCheckAction(sender) { return; } - var action_param = form.action_param; + var action_param = document.getElementById("filter_dlg_param_box"); if (!action_param) { - debug("filterDlgCheckAction: can't find action param!"); + debug("filterDlgCheckAction: can't find action param box!"); return; } // if selected action supports parameters, enable params field if (action == 4 || action == 6) { - action_param.disabled = false; + Element.show(action_param); } else { - action_param.disabled = true; + Element.hide(action_param); } } catch (e) { diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 215c51ab..912ab03a 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -383,10 +383,13 @@ print ""; - print " " . __("with params") . " "; + print ""; + print " " . __("with parameters:") . " "; + print ""; + print ""; - print ""; + print " "; // tiny layout hack print ""; diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 53a3185e..be401603 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -361,19 +361,16 @@ print ""; print "
+
+ +
-
- - -
"; - print "
"; - return; } diff --git a/modules/pref-filters.php b/modules/pref-filters.php index 3946be5f..05d2fb6a 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -74,12 +74,15 @@ print ""; - print " " . __("with params") . " "; + $param_hidden = ($action_id == 4 || $action_id == 6) ? "" : "display : none"; - $param_disabled = ($action_id == 4 || $action_id == 6) ? "" : "disabled"; + print ""; + print " " . __("with parameters:") . " "; + print ""; + print ""; - print ""; + print " "; // tiny layout hack print ""; @@ -111,6 +114,14 @@ print "
"; + $reg_exp = htmlspecialchars($reg_exp); // second escaping seems to be needed for javascript + + print "
"; + print " "; + print "
"; + print ""; - $reg_exp = htmlspecialchars($reg_exp); // second escaping seems to be needed for javascript - - print "
"; - print " "; - print "
"; - print "
"; return; -- 2.39.2