theme preview for end users

This commit is contained in:
friendica 2012-03-25 19:05:14 -07:00
parent 7ab117fd31
commit c88674aaf2
4 changed files with 23 additions and 1 deletions

View file

@ -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>');
});
}