mirror of
https://github.com/friendica/friendica
synced 2025-04-22 09:10:10 +00:00
theme preview for end users
This commit is contained in:
parent
7ab117fd31
commit
c88674aaf2
4 changed files with 23 additions and 1 deletions
|
@ -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>');
|
||||
});
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue