mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
FIX: Javascript .addAttr() doesn't exist
When there's no templates that can be added in the root /admin/pages/add/ hits a JS error and never completes loading
This commit is contained in:
parent
afd98a2ac0
commit
00de0989f4
@ -140,7 +140,7 @@ $.entwine('ss', function($){
|
|||||||
if(this.find('#Form_AddForm_PageType div.radio:not(.disabled)').length) {
|
if(this.find('#Form_AddForm_PageType div.radio:not(.disabled)').length) {
|
||||||
this.find('button[name=action_doAdd]').removeAttr('disabled');
|
this.find('button[name=action_doAdd]').removeAttr('disabled');
|
||||||
} else {
|
} 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']();
|
this.find('.message-restricted')[allAllowed ? 'hide' : 'show']();
|
||||||
|
Loading…
Reference in New Issue
Block a user