Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit a2979f0551832e7b33b7ea6be9c96ce9bec3387c 1 parent 8926741
@halkyon halkyon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/javascript/LeftAndMain.js
View
4 admin/javascript/LeftAndMain.js
@@ -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'});
-};
+};
Please sign in to comment.
Something went wrong with that request. Please try again.