mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:15:11 +00:00
Unbork smarty templates.
This commit is contained in:
parent
6383203ebc
commit
2f43553542
3 changed files with 5 additions and 10 deletions
|
@ -6,7 +6,7 @@
|
||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
|
|
||||||
$("#cnftheme").prettyPhoto({
|
$("#cnftheme").fancybox({
|
||||||
width: 800,
|
width: 800,
|
||||||
autoDimensions: false,
|
autoDimensions: false,
|
||||||
onStart: function(){
|
onStart: function(){
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
$("#cnftheme").attr('href',"{{$baseurl}}/admin/themes/"+theme);
|
$("#cnftheme").attr('href',"{{$baseurl}}/admin/themes/"+theme);
|
||||||
},
|
},
|
||||||
onComplete: function(){
|
onComplete: function(){
|
||||||
$("div#prettyPhoto-content form").submit(function(e){
|
$("div#fancybox-content form").submit(function(e){
|
||||||
var url = $(this).attr('action');
|
var url = $(this).attr('action');
|
||||||
// can't get .serialize() to work...
|
// can't get .serialize() to work...
|
||||||
var data={};
|
var data={};
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
$.post(url, data, function(data) {
|
$.post(url, data, function(data) {
|
||||||
if(timer) clearTimeout(timer);
|
if(timer) clearTimeout(timer);
|
||||||
NavUpdate();
|
NavUpdate();
|
||||||
$.prettyPhoto.close();
|
$.fancybox.close();
|
||||||
})
|
})
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
$.get(
|
$.get(
|
||||||
'{{$baseurl}}/events/?id='+eventid,
|
'{{$baseurl}}/events/?id='+eventid,
|
||||||
function(data){
|
function(data){
|
||||||
$.prettyPhoto(data);
|
$.fancybox(data);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,12 +3,7 @@
|
||||||
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
|
* 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;'>
|
<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>
|
<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>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue