mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Ensure that origLayoutClasses is always an array when considered
empty, as join() will be called later and causes a JS error on an empty string.
This commit is contained in:
parent
89267419d4
commit
a2979f0551
@ -224,7 +224,7 @@ jQuery.noConflict();
|
||||
var layoutClasses = ['east', 'west', 'center', 'north', 'south'];
|
||||
var elemClasses = contentEl.attr('class');
|
||||
|
||||
var origLayoutClasses = '';
|
||||
var origLayoutClasses = [];
|
||||
if(elemClasses) {
|
||||
origLayoutClasses = $.grep(
|
||||
elemClasses.split(' '),
|
||||
@ -557,4 +557,4 @@ var statusMessage = function(text, type) {
|
||||
|
||||
var errorMessage = function(text) {
|
||||
jQuery.noticeAdd({text: text, type: 'error'});
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user