mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00: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…
x
Reference in New Issue
Block a user