Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Avoid breaking IE on CMS ajax responses which don't contain CSS…

… class names (splitting on NULL) (#7002)
  • Loading branch information...
commit 3f4aba55454f5c27486e208a9517ed1c65ead2a9 1 parent c518a19
Ingo Schommer chillu authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 admin/javascript/LeftAndMain.js
13 admin/javascript/LeftAndMain.js
View
@@ -223,12 +223,13 @@ jQuery.noConflict();
var layoutClasses = ['east', 'west', 'center', 'north', 'south'];
var elemClasses = contentEl.attr('class');
- var origLayoutClasses = $.grep(
- elemClasses.split(' '),
- function(val) {
- return ($.inArray(val, layoutClasses) >= 0);
- }
- );
+ var origLayoutClasses = '';
+ if(elemClasses) {
+ origLayoutClasses = $.grep(
+ elemClasses.split(' '),
+ function(val) { return ($.inArray(val, layoutClasses) >= 0);}
+ );
+ }
newContentEl
.removeClass(layoutClasses.join(' '))
Please sign in to comment.
Something went wrong with that request. Please try again.