]> git.wh0rd.org Git - tt-rss.git/commitdiff
add onchange event handling to toggleSubmitNotEmpty-enabled input boxes
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 14 Feb 2007 13:52:18 +0000 (14:52 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 14 Feb 2007 13:52:18 +0000 (14:52 +0100)
modules/popup-dialog.php
modules/pref-feeds.php
modules/pref-filters.php
modules/pref-labels.php
modules/pref-users.php

index f9a9551981506859a994a687feade34d3133644a..55f199baae2a1cc59ad57d2f8661cc25a9156f6e 100644 (file)
@@ -54,6 +54,7 @@
                                <input class=\"iedit\" onblur=\"javascript:enableHotkeys()\" 
                                        onkeypress=\"return filterCR(event, qafAdd)\"
                                        onkeyup=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\"
+                                       onchange=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\"
                                        onfocus=\"javascript:disableHotkeys()\" name=\"feed_url\"></td></tr>";
                
                        if (get_pref($link, 'ENABLE_FEED_CATS')) {
@@ -92,6 +93,7 @@
                        
                        print "<input name=\"query\" class=\"iedit\" 
                                onkeypress=\"return filterCR(event, search)\"
+                               onchange=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\"
                                onkeyup=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\"
                                value=\"\">
                        </td></tr>";
 
                        print "<tr><td>Caption:</td>
                                <td><input onkeypress=\"return filterCR(event, addLabel)\"
-                                        onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
-                                        name=\"description\" class=\"iedit\">";
+                                       onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
+                                       onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
+                                       name=\"description\" class=\"iedit\">";
 
                        print "</td></tr>";
 
 
                        print "<tr><td>Match:</td>
                                <td><input onkeypress=\"return filterCR(event, qaddFilter)\"
-                                        onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
+                                       onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
+                                       onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
                                         name=\"reg_exp\" class=\"iedit\">";            
 
                        print "</td></tr><tr><td>On field:</td><td>";
index 1ea63c96f142cb707b3aafaeadcddc3f0e7b98d3..f929024375813ad28115cd1b32da923e36f96d23 100644 (file)
                                <input id=\"fadd_cat\" 
                                        onkeypress=\"return filterCR(event, addFeedCat)\"
                                        onkeyup=\"toggleSubmitNotEmpty(this, 'catadd_submit_btn')\"
+                                       onchange=\"toggleSubmitNotEmpty(this, 'catadd_submit_btn')\"
                                        size=\"40\">&nbsp;
                                <input 
                                        type=\"submit\" class=\"button\" disabled=\"true\" id=\"catadd_submit_btn\"
                
                                        if (!$edit_cat_id || $action != "edit") {
                
-                                               print "<td width='5%' align='center'><input onclick='toggleSelectPrefRow(this, \"fcat\");' 
+                                               print "<td width='5%' align='center'><input 
+                                                       onclick='toggleSelectPrefRow(this, \"fcat\");' 
                                                        type=\"checkbox\" id=\"FCCHK-".$line["id"]."\"></td>";
                
                                                print "<td><a href=\"javascript:editFeedCat($cat_id);\">" . 
                print "<div class=\"prefGenericAddBox\">
                        <input id=\"fadd_link\" 
                                onkeyup=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\"
+                               onchange=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\"
                                size=\"40\">
                        <input type=\"submit\" class=\"button\"
                                disabled=\"true\" id=\"fadd_submit_btn\"
index 14015b559985601fa4e139ba932bb6f7a3907e7b..d66c9bed41ed0dd4f2f0a63dd5f15d815a08b684 100644 (file)
@@ -45,7 +45,8 @@
                        print "<tr><td>Match:</td>
                                <td><input onkeypress=\"return filterCR(event, filterEditSave)\"
                                         onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
-                                       name=\"reg_exp\" class=\"iedit\" value=\"$reg_exp\">";
+                                        onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
+                                        name=\"reg_exp\" class=\"iedit\" value=\"$reg_exp\">";
                        
                        print "</td></tr><tr><td>On field:</td><td>";
                        
index 8f1bab7af90a748800860b51fe874768852870ff..531764fef38caf92e1653073f6f8260eaf8b7b46 100644 (file)
@@ -37,7 +37,8 @@
 
                        print "<tr><td>Caption:</td>
                                <td><input onkeypress=\"return filterCR(event, labelEditSave)\"
-                                        onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
+                                       onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
+                                       onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
                                         name=\"description\" class=\"iedit\" value=\"$description\">";
 
                        print "</td></tr>";
index c3b85219d2d485d2c91c9fe482576e74149fb642..9835f4c1958f2c9dde5574cfe624e493d580793d 100644 (file)
                print "<div class=\"prefGenericAddBox\">
                        <input id=\"uadd_box\"                  
                                onkeyup=\"toggleSubmitNotEmpty(this, 'user_add_btn')\"
+                               onchange=\"toggleSubmitNotEmpty(this, 'user_add_btn')\"
                                size=\"40\">&nbsp;";
                        
                print "<input type=\"submit\" class=\"button\"