Revision 3182:adf3c934173f,
762 bytes
checked in by franck <carnet.franck.paul@…>, 9 years ago
(diff) |
Disable submit button unless at least one item selected whenever is possible, closes #1600
|
Line | |
---|
1 | $(function(){ |
---|
2 | $('.recall-for-all').attr('disabled','disabled'); |
---|
3 | $('#settings_recall_all').change(function(){ |
---|
4 | if($(this).attr('selected')!='selected'){ |
---|
5 | $('.recall-per-task').attr('disabled','disabled'); |
---|
6 | $('.recall-for-all').removeAttr('disabled'); |
---|
7 | } |
---|
8 | }); |
---|
9 | $('#settings_recall_separate').change(function(){ |
---|
10 | if($(this).attr('selected')!='selected'){ |
---|
11 | $('.recall-per-task').removeAttr('disabled'); |
---|
12 | $('.recall-for-all').attr('disabled','disabled'); |
---|
13 | } |
---|
14 | }); |
---|
15 | dotclear.condSubmit('#part-maintenance input[type="radio"]','#part-maintenance input[type="submit"]'); |
---|
16 | dotclear.condSubmit('#part-backup input[type="radio"]','#part-backup input[type="submit"]'); |
---|
17 | dotclear.condSubmit('#part-dev input[type="radio"]','#part-dev input[type="submit"]'); |
---|
18 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.