4 $("#cnftheme").click(function(){
9 var theme = $("#id_theme :selected").val();
10 $("#cnftheme").attr('href',"$baseurl/admin/themes/"+theme);
12 href: "$baseurl/admin/themes/" + $("#id_theme :selected").val(),
13 onComplete: function(){
14 $("div#fancybox-content form").submit(function(e){
15 var url = $(this).attr('action');
16 // can't get .serialize() to work...
18 $(this).find("input").each(function(){
19 data[$(this).attr('name')] = $(this).val();
21 $(this).find("select").each(function(){
22 data[$(this).attr('name')] = $(this).children(":selected").val();
24 console.log(":)", url, data);
26 $.post(url, data, function(data) {
27 if(timer) clearTimeout(timer);
42 <h1>$title - $page</h1>
44 <form action="$baseurl/admin/site" method="post">
45 <input type='hidden' name='form_security_token' value='$form_security_token'>
47 {{ inc field_input.tpl with $field=$sitename }}{{ endinc }}
48 {{ inc field_textarea.tpl with $field=$banner }}{{ endinc }}
49 {{ inc field_select.tpl with $field=$language }}{{ endinc }}
50 {{ inc field_select.tpl with $field=$theme }}{{ endinc }}
51 {{ inc field_select.tpl with $field=$theme_mobile }}{{ endinc }}
52 {{ inc field_select.tpl with $field=$ssl_policy }}{{ endinc }}
53 {{ inc field_checkbox.tpl with $field=$new_share }}{{ endinc }}
56 <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
58 <h3>$registration</h3>
59 {{ inc field_input.tpl with $field=$register_text }}{{ endinc }}
60 {{ inc field_select.tpl with $field=$register_policy }}{{ endinc }}
61 {{ inc field_input.tpl with $field=$daily_registrations }}{{ endinc }}
62 {{ inc field_checkbox.tpl with $field=$no_multi_reg }}{{ endinc }}
63 {{ inc field_checkbox.tpl with $field=$no_openid }}{{ endinc }}
64 {{ inc field_checkbox.tpl with $field=$no_regfullname }}{{ endinc }}
66 <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
69 {{ inc field_input.tpl with $field=$maximagesize }}{{ endinc }}
70 {{ inc field_input.tpl with $field=$maximagelength }}{{ endinc }}
71 {{ inc field_input.tpl with $field=$jpegimagequality }}{{ endinc }}
74 {{ inc field_input.tpl with $field=$allowed_sites }}{{ endinc }}
75 {{ inc field_input.tpl with $field=$allowed_email }}{{ endinc }}
76 {{ inc field_checkbox.tpl with $field=$block_public }}{{ endinc }}
77 {{ inc field_checkbox.tpl with $field=$force_publish }}{{ endinc }}
78 {{ inc field_checkbox.tpl with $field=$no_community_page }}{{ endinc }}
79 {{ inc field_checkbox.tpl with $field=$ostatus_disabled }}{{ endinc }}
80 {{ inc field_checkbox.tpl with $field=$diaspora_enabled }}{{ endinc }}
81 {{ inc field_checkbox.tpl with $field=$dfrn_only }}{{ endinc }}
82 {{ inc field_input.tpl with $field=$global_directory }}{{ endinc }}
83 {{ inc field_checkbox.tpl with $field=$thread_allow }}{{ endinc }}
84 {{ inc field_checkbox.tpl with $field=$newuser_private }}{{ endinc }}
86 <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
89 {{ inc field_checkbox.tpl with $field=$no_utf }}{{ endinc }}
90 {{ inc field_checkbox.tpl with $field=$verifyssl }}{{ endinc }}
91 {{ inc field_input.tpl with $field=$proxy }}{{ endinc }}
92 {{ inc field_input.tpl with $field=$proxyuser }}{{ endinc }}
93 {{ inc field_input.tpl with $field=$timeout }}{{ endinc }}
94 {{ inc field_input.tpl with $field=$delivery_interval }}{{ endinc }}
95 {{ inc field_input.tpl with $field=$poll_interval }}{{ endinc }}
96 {{ inc field_input.tpl with $field=$maxloadavg }}{{ endinc }}
97 {{ inc field_input.tpl with $field=$abandon_days }}{{ endinc }}
98 {{ inc field_input.tpl with $field=$lockpath }}{{ endinc }}
99 {{ inc field_input.tpl with $field=$temppath }}{{ endinc }}
100 {{ inc field_input.tpl with $field=$basepath }}{{ endinc }}
102 <h3>$performance</h3>
103 {{ inc field_checkbox.tpl with $field=$use_fulltext_engine }}{{ endinc }}
104 {{ inc field_input.tpl with $field=$itemcache }}{{ endinc }}
105 {{ inc field_input.tpl with $field=$itemcache_duration }}{{ endinc }}
108 <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>