From c88674aaf23ede573f19a2b363dfccf9627a5dcb Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 25 Mar 2012 19:05:14 -0700 Subject: theme preview for end users --- js/main.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'js') 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('' + theme + ''); + }); + +} \ No newline at end of file -- cgit v1.2.3