From 2371c520c734769f8150ddf5101052bd0973337e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 18 May 2006 09:29:17 +0100 Subject: disable some submit-type buttons when required data is not given --- backend.php | 55 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 19 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index be7aba382..66d52ae9e 100644 --- a/backend.php +++ b/backend.php @@ -1823,10 +1823,12 @@ cellspacing='0' cellpadding='0'> + onchange=\"javascript:addFeed()\" + onkeyup=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\" + size=\"40\"> "; + disabled=\"true\" id=\"fadd_submit_btn\" + onclick=\"addFeed()\" value=\"Subscribe\">"; if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { print " + onchange=\"javascript:updateFeedList()\" value=\"$feed_search\"> @@ -2594,10 +2595,13 @@ } print "
-  "; +  "; print"
"; + disabled=\"true\" id=\"label_create_btn\" + onclick=\"javascript:addLabel()\" value=\"Create label\">"; $result = db_query($link, "SELECT id,sql_exp,description @@ -2775,6 +2779,7 @@ print ""; if (get_pref($link, 'ENABLE_FEED_CATS')) { @@ -2801,11 +2806,13 @@ print ""; } - print "
Feed URL:
-
"; + print " + + "; } if ($id == "quickDelFeed") { @@ -2842,8 +2849,10 @@ print "
Search:"; print " + onblur=\"javascript:enableHotkeys()\" + onfocus=\"javascript:disableHotkeys()\" + onkeyup=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\" + onchange=\"javascript:search()\">
Where:
+ class=\"button\" onclick=\"javascript:search()\" + id=\"search_submit_btn\" disabled=\"true\" + value=\"Search\">
"; @@ -2885,7 +2896,9 @@ print ""; - print " +
Match: "; + print "
Match: "; print_select("fadd_match", "Title", $filter_types); @@ -2928,8 +2941,9 @@ print "
"; print " "; + disabled=\"true\" value=\"Create\"> "; print " -  "; +  "; print""; + id=\"user_add_btn\" disabled=\"true\" + onclick=\"javascript:addUser()\" value=\"Create user\">"; $result = db_query($link, "SELECT id,login,access_level,email, -- cgit v1.2.3-54-g00ecf