Skip to content

Commit

Permalink
Fix error from PR joomla#12543
Browse files Browse the repository at this point in the history
  • Loading branch information
Tchangue authored Jul 23, 2018
1 parent d46391e commit 3f1fbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/templates/isis/js/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
// add color classes to chosen field based on value
$('select[class^="chzn-color"], select[class*=" chzn-color"]').on('liszt:ready', function(){
var select = $(this);
var cls = this.className.replace(/^.(chzn-color[a-z0-9-_]*)$.*/, '\1');
var cls = this.className.replace(/^.(chzn-color[a-z0-9-_]*)$.*/, '\\1');
var container = select.next('.chzn-container').find('.chzn-single');
container.addClass(cls).attr('rel', 'value_' + select.val());
select.on('change click', function()
Expand Down

0 comments on commit 3f1fbdd

Please sign in to comment.