|
@ -19,11 +19,12 @@ onready(function(){ |
|
|
|
|
|
|
|
|
var i = 1; |
|
|
var i = 1; |
|
|
stylesDiv.children().each(function() { |
|
|
stylesDiv.children().each(function() { |
|
|
stylesSelect.append( |
|
|
var opt = $('<option></option>') |
|
|
$('<option></option>') |
|
|
|
|
|
.text(this.innerText.replace(/(^\[|\]$)/g, '')) |
|
|
.text(this.innerText.replace(/(^\[|\]$)/g, '')) |
|
|
.val(i) |
|
|
.val(i); |
|
|
); |
|
|
if ($(this).hasClass('selected')) |
|
|
|
|
|
opt.attr('selected', true); |
|
|
|
|
|
stylesSelect.append(opt); |
|
|
$(this).attr('id', 'style-select-' + i); |
|
|
$(this).attr('id', 'style-select-' + i); |
|
|
i++; |
|
|
i++; |
|
|
}); |
|
|
}); |
|
|