diff options
Diffstat (limited to 'js/main.js')
-rwxr-xr-x | js/main.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js index 2b4b13791..defd1f951 100755 --- a/js/main.js +++ b/js/main.js @@ -588,3 +588,10 @@ Array.prototype.remove = function(item) { return this.push.apply(this, rest); }; +function previewTheme(elm) { + theme = $(elm).val(); + $.getJSON('pretheme?f=&theme=' + theme,function(data) { + $('#theme-preview').html('<div id="theme-desc">' + data.desc + '</div><a href="' + data.img + '"><img src="' + data.img + '" width="320" height="240" alt="' + theme + '" /></a>'); + }); + +}
\ No newline at end of file |