Changeset f01fe8 in indico


Ignore:
Timestamp:
02/17/12 11:43:20 (15 months ago)
Author:
Alberto Resco Perez <alberto.resco.perez@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 4c7d4152dff271ba5df5a8606605969cab454080
Children:
b5b297
Parents:
f3982a
git-author:
Alberto Resco Perez <alberto.resco.perez@…> (02/17/12 09:32:28)
git-committer:
Alberto Resco Perez <alberto.resco.perez@…> (02/17/12 11:43:20)
Message:

[FIX] Agreement checkbox disable.

  • When the persistent checkbox is enabled disable the key checkbox and button.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/htdocs/js/indico/Common/Export.js

    rf137e5 rf01fe8  
    296296            $('#agreementButtonPersistent'+this.getAttribute('data-id')).removeAttr("disabled"); 
    297297            $('#agreeCheckBoxKey'+this.getAttribute('data-id'))[0].checked = true; 
     298            $('#agreeCheckBoxKey'+this.getAttribute('data-id')).attr("disabled","disabled"); 
     299            $('#agreementButtonKey'+this.getAttribute('data-id')).attr("disabled","disabled"); 
    298300        }else{ 
    299301            $('#agreementButtonPersistent'+this.getAttribute('data-id')).attr("disabled","disabled"); 
     302            $('#agreeCheckBoxKey'+this.getAttribute('data-id')).removeAttr("disabled"); 
     303            $('#agreeCheckBoxKey'+this.getAttribute('data-id'))[0].checked = false; 
    300304        } 
    301305    }); 
Note: See TracChangeset for help on using the changeset viewer.