]> dev.renevier.net Git - syj.git/commitdiff
do not allow checking accept checkbox when submit button is disabled
authorarno <arno@renevier.net>
Wed, 18 Aug 2010 20:26:19 +0000 (22:26 +0200)
committerarno <arno@renevier.net>
Wed, 18 Aug 2010 20:26:19 +0000 (22:26 +0200)
public/js/syj.js

index 3c4bece6a7767b2a093c145ef80a6b9e42ecc53a..58e542a559d15d19003cd9c558e31cbcef5e532a 100644 (file)
@@ -40,6 +40,7 @@ var SyjSaveUI = {
 
     enableSubmit: function() {
         $("geom_submit").disabled = false;
+        $("geom_accept").disabled = false;
         this.status = "partial";
         return this;
     },
@@ -47,6 +48,8 @@ var SyjSaveUI = {
     disableSubmit: function() {
         $("geom_submit").blur();
         $("geom_submit").disabled = true;
+        $("geom_accept").blur();
+        $("geom_accept").disabled = true;
         this.status = "partial";
         return this;
     }