Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #954 from kblomqvist/develop

Fix #953
  • Loading branch information...
commit f6031678d03d28837c7850b78d8728ba5be21625 2 parents a129321 + 576ea74
@ojii ojii authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 cms/static/cms/js/plugins/cms.toolbar.js
View
4 cms/static/cms/js/plugins/cms.toolbar.js
@@ -293,13 +293,13 @@ jQuery(document).ready(function ($) {
// lets loop through the items
$(obj.items).each(function (index, value) {
// add icon if available
- var icon = value.icon ? 'cms_toolbar_icon cms_toolbar_icon-enabled ' : '';
+ var icon_styles = value.icon ? ' class="cms_toolbar_icon cms_toolbar_icon-enabled" style="background-image:url('+value.icon+');"' : '';
// replace attributes
tmp += list.replace('[list_title]', value.title)
.replace('[list_url]', value.url)
.replace('[list_method]', value.method)
.replace('[list_class]', value.cls)
- .replace('<span>', '<span class="'+icon+'" style="background-image:url('+value.icon+');">');
+ .replace('<span>', '<span'+icon_styles+'>');
});
// add items
template.find('.cms_toolbar-item_list').html($(tmp));
Please sign in to comment.
Something went wrong with that request. Please try again.