]> git.wh0rd.org - tt-rss.git/commitdiff
filter dialog UI tweaks
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 13 Dec 2008 12:35:26 +0000 (13:35 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 13 Dec 2008 12:35:26 +0000 (13:35 +0100)
modules/popup-dialog.php
modules/pref-filters.php

index 90e537e91316249b15e3ebee4394b87e51f4c99c..a39ea0efa5491a399c04f2aa12a8cf63214a6229 100644 (file)
                        print "<div class=\"dlgSecCont\">";
 
                        print "<span id=\"filter_dlg_date_mod_box\" style=\"display : none\">";
+                       print __("Date") . " ";
                        print "<select name=\"filter_date_modifier\">";
-                       print "<option value=\"before\">".__('Before')."</option>";
-                       print "<option value=\"after\">".__('After')."</option>";
+                       print "<option value=\"before\">".__('before')."</option>";
+                       print "<option value=\"after\">".__('after')."</option>";
                        print "</select>&nbsp;</span>";
 
                        print "<input onkeypress=\"return filterCR(event, createFilter)\"
                                         onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
                                         name=\"reg_exp\" size=\"30\" value=\"$reg_exp\">";
 
-                       print "<span id=\"filter_dlg_date_chk_box\" style=\"display : none\">";                 
+                       print "<span id=\"filter_dlg_date_chk_box\" style=\"display : none\">";
                        print "&nbsp;<input class=\"button\"
                                type=\"submit\" onclick=\"return filterDlgCheckDate()\" 
-                               value=\"".__('Check date')."\">";
+                               value=\"".__('Check it')."\">";
                        print "</span>";
 
                        print "<br/> " . __("on field") . " ";
index 1bd08b19adcf882f974cbafa26d1eb8ca4721a8d..10a974a999ac7fc5f42f899c8856dba1940e8207 100644 (file)
 
                        print "<div class=\"dlgSecCont\">";
 
+                       if ($filter_type != 5) {
+                               $date_ops_invisible = 'style=\"display : none\"';
+                       }
+
+                       print "<span id=\"filter_dlg_date_mod_box\" $date_ops_invisible>";
+                       print __("Date") . " ";
+                       print "<select name=\"filter_date_modifier\">";
+                       print "<option value=\"before\">".__('before')."</option>";
+                       print "<option value=\"after\">".__('after')."</option>";
+                       print "</select>&nbsp;</span>";
+
                        print "<input onkeypress=\"return filterCR(event, filterEditSave)\"
                                         onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
                                         onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
                                         name=\"reg_exp\" size=\"30\" value=\"$reg_exp\">";
 
-                       print " " . __("on field") . " ";
-                       print_select_hash("filter_type", $filter_type, $filter_types);
+                       print "<span id=\"filter_dlg_date_chk_box\" $date_ops_invisible>";                      
+                       print "&nbsp;<input class=\"button\"
+                               type=\"submit\" onclick=\"return filterDlgCheckDate()\" 
+                               value=\"".__('Check it')."\">";
+                       print "</span>";
+
+                       print "<br/> " . __("on field") . " ";
+                       print_select_hash("filter_type", $filter_type, $filter_types,
+                               'onchange="filterDlgCheckType(this)"');
 
                        print "<br/>";