commit dev version of style-select (because PR got screwed up)

This commit is contained in:
towards-a-new-leftypol 2021-07-03 22:26:25 -04:00
parent f6faf335fe
commit ac0cf94280
1 changed files with 0 additions and 29 deletions

View File

@ -53,32 +53,3 @@ $(document).ready(function() {
.append(_('Select theme: '), stylesSelect)
);
});
stylesDiv = $('div.styles');
var pages = $('div.pages');
var stylesSelect = $('<select></select>');
var i = 1;
stylesDiv.children().each(function() {
var opt = $('<option></option>')
.html(this.innerHTML.replace(/(^\[|\]$)/g, ''))
.val(i);
if ($(this).hasClass('selected'))
opt.attr('selected', true);
stylesSelect.append(opt);
$(this).attr('id', 'style-select-' + i);
i++;
});
stylesSelect.change(function() {
$('#style-select-' + $(this).val()).click();
});
stylesDiv.hide()
pages.after(
$('<div id="style-select"></div>')
/*.text(_('Style: '))*/
.append(stylesSelect)
);
});