]> git.mxchange.org Git - friendica.git/blobdiff - js/main.js
Merge remote branch 'upstream/master'
[friendica.git] / js / main.js
index 2b4b13791aeef4765c3ab3f15b28627d080034ef..defd1f951ae6ec194437122d2a92eb9d9360f8c2 100755 (executable)
@@ -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