aboutsummaryrefslogtreecommitdiffstats
path: root/view/admin_site.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-13 06:02:18 -0700
committerfriendica <info@friendica.com>2012-04-13 06:02:18 -0700
commit11ba88b6d21a40c302d21646dfa9366bb393931d (patch)
treefeddc7956054f7966e2f4ebd4231df20e9e31fee /view/admin_site.tpl
parentdf1904b204a969780609cac64bbb1a03a8dd3fcb (diff)
parentf6e1ddf7fbcc122f5122336650e1cfaa71aed8e3 (diff)
downloadvolse-hubzilla-11ba88b6d21a40c302d21646dfa9366bb393931d.tar.gz
volse-hubzilla-11ba88b6d21a40c302d21646dfa9366bb393931d.tar.bz2
volse-hubzilla-11ba88b6d21a40c302d21646dfa9366bb393931d.zip
Merge pull request #230 from fabrixxm/master
some work, mainly on quattro
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>