mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-06-27 15:09:46 +02:00
Merge pull request #1725 from mikenz/patch-4
FIX: Javascript .addAttr() doesn't exist
This commit is contained in:
commit
3659704f75
|
@ -140,7 +140,7 @@ $.entwine('ss', function($){
|
|||
if(this.find('#Form_AddForm_PageType div.radio:not(.disabled)').length) {
|
||||
this.find('button[name=action_doAdd]').removeAttr('disabled');
|
||||
} else {
|
||||
this.find('button[name=action_doAdd]').addAttr('disabled');
|
||||
this.find('button[name=action_doAdd]').attr('disabled', 'disabled');
|
||||
}
|
||||
|
||||
this.find('.message-restricted')[allAllowed ? 'hide' : 'show']();
|
||||
|
|
Loading…
Reference in New Issue
Block a user