aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-25 19:05:14 -0700
committerfriendica <info@friendica.com>2012-03-25 19:05:14 -0700
commitc88674aaf23ede573f19a2b363dfccf9627a5dcb (patch)
tree801fced677c7af3dd202919a2a747175a3c9a232 /js
parent7ab117fd31c31cba4880cfcc63fc940531850455 (diff)
downloadvolse-hubzilla-c88674aaf23ede573f19a2b363dfccf9627a5dcb.tar.gz
volse-hubzilla-c88674aaf23ede573f19a2b363dfccf9627a5dcb.tar.bz2
volse-hubzilla-c88674aaf23ede573f19a2b363dfccf9627a5dcb.zip
theme preview for end users
Diffstat (limited to 'js')
-rwxr-xr-xjs/main.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
index 2b4b13791..0b5fb5cdc 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('<a href="' + data.img + '"><img src="' + data.img + '" width="320" height="240" alt="' + theme + '" /></a>');
+ });
+
+} \ No newline at end of file