From: arno Date: Wed, 18 Aug 2010 20:26:19 +0000 (+0200) Subject: do not allow checking accept checkbox when submit button is disabled X-Git-Tag: v0.2~36 X-Git-Url: https://dev.renevier.net/?p=syj.git;a=commitdiff_plain;h=e3108d04cc1515d8e0482f8f238ac1d5dd59f633 do not allow checking accept checkbox when submit button is disabled --- diff --git a/public/js/syj.js b/public/js/syj.js index 3c4bece..58e542a 100644 --- a/public/js/syj.js +++ b/public/js/syj.js @@ -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; }