diff options
author | zottel <github@zottel.net> | 2012-03-27 13:20:59 +0200 |
---|---|---|
committer | zottel <github@zottel.net> | 2012-03-27 13:20:59 +0200 |
commit | fb817a29a934a68f194a42c29d3ed11da2da558f (patch) | |
tree | fdeb88be9d8545ead92c5d63a9d9af7f6a7ccc23 /js/main.js | |
parent | fabd4f4d2ebd9d1623db7e20d6e4e8f6bd0611ff (diff) | |
parent | 928e6c7ef78d251429a7d5c1fd4fdb8e6c282d41 (diff) | |
download | volse-hubzilla-fb817a29a934a68f194a42c29d3ed11da2da558f.tar.gz volse-hubzilla-fb817a29a934a68f194a42c29d3ed11da2da558f.tar.bz2 volse-hubzilla-fb817a29a934a68f194a42c29d3ed11da2da558f.zip |
Merge remote branch 'upstream/master'
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 |