From: Andrew Dolgov Date: Thu, 7 Aug 2008 03:17:24 +0000 (+0100) Subject: dialog layout tweaks X-Git-Tag: 1.2.26~30 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=143a497306aea0198c1dae4c03ac8ca344e37f55;p=tt-rss.git dialog layout tweaks --- 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;