Unbork smarty templates.

This commit is contained in:
Thomas Willingham 2013-04-26 23:00:10 +01:00
parent 6383203ebc
commit 2f43553542
3 changed files with 5 additions and 10 deletions

View file

@ -6,7 +6,7 @@
<script>
$(function(){
$("#cnftheme").prettyPhoto({
$("#cnftheme").fancybox({
width: 800,
autoDimensions: false,
onStart: function(){
@ -14,7 +14,7 @@
$("#cnftheme").attr('href',"{{$baseurl}}/admin/themes/"+theme);
},
onComplete: function(){
$("div#prettyPhoto-content form").submit(function(e){
$("div#fancybox-content form").submit(function(e){
var url = $(this).attr('action');
// can't get .serialize() to work...
var data={};
@ -29,7 +29,7 @@
$.post(url, data, function(data) {
if(timer) clearTimeout(timer);
NavUpdate();
$.prettyPhoto.close();
$.fancybox.close();
})
return false;

View file

@ -12,7 +12,7 @@
$.get(
'{{$baseurl}}/events/?id='+eventid,
function(data){
$.prettyPhoto(data);
$.fancybox(data);
}
);
}

View file

@ -3,12 +3,7 @@
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
*
*}}
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>
<a href='{{$embedurl}}' onclick='this.innerHTML=Base64.decode("{{$escapedhtml}}"); return false;' style='float:left; margin: 1em; position: relative;'>
<img width='{{$tw}}' height='{{$th}}' src='{{$turl}}'>
<img width='{{$tw}}' height='{{$th}}' src='{{$turl}}' >
<div style='position: absolute; top: 0px; left: 0px; width: {{$twpx}}; height: {{$thpx}}; background: url({{$baseurl}}/images/icons/48/play.png) no-repeat center center;'></div>
</a>