mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-29 01:34:31 +01:00
Select chosen stylesheet on load
This commit is contained in:
parent
1bcd577638
commit
84de059065
@ -19,11 +19,12 @@ onready(function(){
|
||||
|
||||
var i = 1;
|
||||
stylesDiv.children().each(function() {
|
||||
stylesSelect.append(
|
||||
$('<option></option>')
|
||||
.text(this.innerText.replace(/(^\[|\]$)/g, ''))
|
||||
.val(i)
|
||||
);
|
||||
var opt = $('<option></option>')
|
||||
.text(this.innerText.replace(/(^\[|\]$)/g, ''))
|
||||
.val(i);
|
||||
if ($(this).hasClass('selected'))
|
||||
opt.attr('selected', true);
|
||||
stylesSelect.append(opt);
|
||||
$(this).attr('id', 'style-select-' + i);
|
||||
i++;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user