From b5015f723f7010fde9d633b557beb66b18d5d659 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 14 Feb 2007 14:52:18 +0100 Subject: [PATCH] add onchange event handling to toggleSubmitNotEmpty-enabled input boxes --- modules/popup-dialog.php | 10 +++++++--- modules/pref-feeds.php | 5 ++++- modules/pref-filters.php | 3 ++- modules/pref-labels.php | 3 ++- modules/pref-users.php | 1 + 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index f9a95519..55f199ba 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -54,6 +54,7 @@ "; if (get_pref($link, 'ENABLE_FEED_CATS')) { @@ -92,6 +93,7 @@ print " "; @@ -166,8 +168,9 @@ print "Caption: "; + onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\" + onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\" + name=\"description\" class=\"iedit\">"; print ""; @@ -228,7 +231,8 @@ print "Match: "; print "On field:"; diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 1ea63c96..f9290243 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -591,6 +591,7 @@   "; print "" . @@ -756,6 +758,7 @@ print "
Match: "; + onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\" + name=\"reg_exp\" class=\"iedit\" value=\"$reg_exp\">"; print "On field:"; diff --git a/modules/pref-labels.php b/modules/pref-labels.php index 8f1bab7a..531764fe 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -37,7 +37,8 @@ print "Caption: "; print ""; diff --git a/modules/pref-users.php b/modules/pref-users.php index c3b85219..9835f4c1 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -185,6 +185,7 @@ print "
 "; print "