style-select.js: fix on firefox
This commit is contained in:
parent
5710575d1d
commit
be8c84a2ab
@ -20,7 +20,7 @@ onready(function(){
|
||||
var i = 1;
|
||||
stylesDiv.children().each(function() {
|
||||
var opt = $('<option></option>')
|
||||
.text(this.innerText.replace(/(^\[|\]$)/g, ''))
|
||||
.html(this.innerHTML.replace(/(^\[|\]$)/g, ''))
|
||||
.val(i);
|
||||
if ($(this).hasClass('selected'))
|
||||
opt.attr('selected', true);
|
||||
|
Loading…
Reference in New Issue
Block a user