Revision 3182:adf3c934173f,
762 bytes
checked in by franck <carnet.franck.paul@…>, 10 years ago
(diff) |
Disable submit button unless at least one item selected whenever is possible, closes #1600
|
Rev | Line | |
---|
[1984] | 1 | $(function(){ |
---|
[3182] | 2 | $('.recall-for-all').attr('disabled','disabled'); |
---|
[2044] | 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'){ |
---|
[1984] | 11 | $('.recall-per-task').removeAttr('disabled'); |
---|
[2044] | 12 | $('.recall-for-all').attr('disabled','disabled'); |
---|
[1984] | 13 | } |
---|
| 14 | }); |
---|
[3182] | 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"]'); |
---|
[2566] | 18 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.