Browse Source

#2143. Using title in injected styles causes issues... for some reason?

pull/2169/head
jlukic 9 years ago
parent
commit
3d92ed9c20
1 changed files with 4 additions and 3 deletions
  1. 7
      src/definitions/modules/sidebar.js

7
src/definitions/modules/sidebar.js

@ -229,7 +229,7 @@ $.fn.sidebar = function(parameters) {
distance.right = width;
}
style = '<style title="' + namespace + '">';
style = '<style>';
if(direction === 'left' || direction === 'right') {
module.debug('Adding CSS rules for animation distance', width);
@ -281,8 +281,9 @@ $.fn.sidebar = function(parameters) {
;
}
style += '</style>';
$head.append(style);
$style = $('style[title=' + namespace + ']');
$style = $(style)
.appendTo($head)
;
module.debug('Adding sizing css to head', $style);
}
},

Loading…
Cancel
Save