diff --git a/builds/appchan-x.js b/builds/appchan-x.js index 951d346a8..72afffb6f 100644 --- a/builds/appchan-x.js +++ b/builds/appchan-x.js @@ -11306,18 +11306,12 @@ ThemeTools = { init: function(key) { - var colorInput, div, fileInput, header, input, item, layout, themecontent, _i, _j, _len, _len1, _ref; + var colorInput, div, fileInput, header, input, item, layout, nodes, themeContent, _i, _j, _len, _len1, _ref; Conf['editMode'] = "theme"; - if (Themes[key]) { + if (key) { editTheme = JSON.parse(JSON.stringify(Themes[key])); - $.get("userThemes", {}, function(items) { - if (items[key]) { - return editTheme["Theme"] = key; - } else { - return editTheme["Theme"] = key += " [custom]"; - } - }); + editTheme["Theme"] = Conf['userThemes'][key] ? key : key += " [custom]"; } else { editTheme = JSON.parse(JSON.stringify(Themes['Yotsuba B'])); editTheme["Theme"] = "Untitled"; @@ -11341,7 +11335,8 @@ }); } $.add($("#themebar", ThemeTools.dialog), header); - themecontent = $("#themecontent", ThemeTools.dialog); + themeContent = $("#themecontent", ThemeTools.dialog); + nodes = []; for (_j = 0, _len1 = layout.length; _j < _len1; _j++) { item = layout[_j]; if (!editTheme[item]) { @@ -11416,10 +11411,9 @@ } return editTheme[this.name] = this.value; }); - Style.addStyle(editTheme); - $.add(themecontent, div); + nodes.push(div); } - $.add(themecontent, div); + Style.addStyle(editTheme); if (!editTheme["Custom CSS"]) { editTheme["Custom CSS"] = ""; } @@ -11431,11 +11425,12 @@ editTheme["Custom CSS"] = this.value; return Style.themeCSS.textContent = Style.theme(editTheme); }); - $.add(themecontent, div); + nodes.push(div); $.on($('#save > a', ThemeTools.dialog), 'click', function() { return ThemeTools.save(editTheme); }); $.on($('#close > a', ThemeTools.dialog), 'click', ThemeTools.close); + $.add(themeContent, nodes); $.add(d.body, ThemeTools.dialog); return Style.themeCSS.textContent = Style.theme(editTheme); }, @@ -13694,19 +13689,20 @@ for (_i = 0, _len = keys.length; _i < _len; _i++) { name = keys[_i]; theme = Themes[name]; - if (!theme["Deleted"]) { - div = $.el('div', { - className: "theme " + (name === Conf['theme'] ? 'selectedtheme' : ''), - id: name, - innerHTML: "
>>27582902
Post content is right here.
>>27582902
Post content is right here.
>>27582902
I forgive you for using VLC to open me. ;__;
>>27582902
I forgive you for using VLC to open me. ;__;
>>27582902
Post content is right here.
>>27582902
Post content is right here.
>>27582902
I forgive you for using VLC to open me. ;__;
>>27582902
I forgive you for using VLC to open me. ;__;
>>27582902
Post content is right here.
>>27582902
Post content is right here.
>>27582902
I forgive you for using VLC to open me. ;__;
>>27582902
I forgive you for using VLC to open me. ;__;