aboutsummaryrefslogtreecommitdiffstats
path: root/view/admin_site.tpl
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-04-13 19:26:18 -0400
committerSimon L'nu <simon.lnu@gmail.com>2012-04-13 19:26:18 -0400
commita3d95f79f27ca73d657907ab42b51ecc50872089 (patch)
tree74865c7ef150c0d92485f9ec1b1dd204175e34ca /view/admin_site.tpl
parent093c3a936fc40e4d66f5bc5dffd1fce4ddbedcdc (diff)
parentbfb821e9188ef83fb2621250fd97bdb169447f3d (diff)
downloadvolse-hubzilla-a3d95f79f27ca73d657907ab42b51ecc50872089.tar.gz
volse-hubzilla-a3d95f79f27ca73d657907ab42b51ecc50872089.tar.bz2
volse-hubzilla-a3d95f79f27ca73d657907ab42b51ecc50872089.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: well that was a silly mistake... setting wasn't being applied rev update diabook-themes: theme-settings: users can set font-size and line-height for posts and comments diabook: theme-settings: users can set font-size and line-height for posts and comments diabook-themes: small fixes quattro: language icon in navbar move html out of lang_selector() and new template lang_selector.tpl display settings: show theme screenshot on page load quattro: add admin theme settigs. darker items background with a bottom border. admin: change global theme settings quattro: work on "like" activitiy items less visible fixes to widths popup notification out of navbar category input in jot validate_url allow naked subdomain if is "localhost" * master:
Diffstat (limited to 'view/admin_site.tpl')
-rw-r--r--view/admin_site.tpl36
1 files changed, 36 insertions, 0 deletions
diff --git a/view/admin_site.tpl b/view/admin_site.tpl
index ec144fbba..9de6bd9c5 100644
--- a/view/admin_site.tpl
+++ b/view/admin_site.tpl
@@ -1,3 +1,39 @@
+<script>
+ $(function(){
+
+ $("#cnftheme").fancybox({
+ width: 800,
+ autoDimensions: false,
+ onStart: function(){
+ var theme = $("#id_theme :selected").val();
+ $("#cnftheme").attr('href',"$baseurl/admin/themes/"+theme);
+ },
+ onComplete: function(){
+ $("div#fancybox-content form").submit(function(e){
+ var url = $(this).attr('action');
+ // can't get .serialize() to work...
+ var data={};
+ $(this).find("input").each(function(){
+ data[$(this).attr('name')] = $(this).val();
+ });
+ $(this).find("select").each(function(){
+ data[$(this).attr('name')] = $(this).children(":selected").val();
+ });
+ console.log(":)", url, data);
+
+ $.post(url, data, function(data) {
+ if(timer) clearTimeout(timer);
+ NavUpdate();
+ $.fancybox.close();
+ })
+
+ return false;
+ });
+
+ }
+ });
+ });
+</script>
<div id='adminpage'>
<h1>$title - $page</h1>