more colorbox

This commit is contained in:
fabrixxm 2013-02-11 15:23:23 -05:00
parent 2b1dc3576f
commit 66587d82a6
1 changed files with 9 additions and 9 deletions

View File

@ -1,16 +1,16 @@
<script>
$(function(){
$("#cnftheme").fancybox({
width: 800,
autoDimensions: false,
onStart: function(){
$("#cnftheme").colorbox({
href: function(){
var theme = $("#id_theme :selected").val();
var theme_mobile = $("#id_theme_mobile :selected").val();
$("#cnftheme").attr('href',"$baseurl/admin/themes/"+theme);
},
return "$baseurl/admin/themes/"+theme;
},
width: "80%",
height: "100%",
onComplete: function(){
$("div#fancybox-content form").submit(function(e){
$("div#cboxLoadedContent form").submit(function(e){
var url = $(this).attr('action');
// can't get .serialize() to work...
var data={};
@ -25,7 +25,7 @@
$.post(url, data, function(data) {
if(timer) clearTimeout(timer);
NavUpdate();
$.fancybox.close();
$.colorbox.close();
})
return false;
@ -39,7 +39,7 @@
<h1>$title - $page</h1>
<form action="$baseurl/admin/site" method="post">
<input type='hidden' name='form_security_token' value='$form_security_token'>
<input type='hidden' name='form_security_token' value='$form_security_token'>
{{ inc field_input.tpl with $field=$sitename }}{{ endinc }}
{{ inc field_textarea.tpl with $field=$banner }}{{ endinc }}