style-select.js: fix on firefox

This commit is contained in:
czaks 2013-08-02 00:18:02 -04:00
parent a15e0ffa98
commit 0d64ae0472

View File

@ -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);