diff options
| -rw-r--r-- | chimere/templates/chimere/detail.html | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/chimere/templates/chimere/detail.html b/chimere/templates/chimere/detail.html index 9c2414e..70e66b5 100644 --- a/chimere/templates/chimere/detail.html +++ b/chimere/templates/chimere/detail.html @@ -94,20 +94,19 @@ $(document).ready(function(){ $("#gallery-{{marker.pk}}").dialog("option", "width", 'auto'); $("#gallery-{{marker.pk}}").dialog("option", "position", ['center', 'center']); - } - }); -}); -$("#gallery-{{marker.pk}}").bind( "dialogclose", function(event, ui) { - //pause all medias - $('video').each(function(index){$(this).pause()}); - $('audio').each(function(index){$(this).pause()}); -}); -$('.show_gallery_link').click(function(){ - $("#gallery-{{marker.pk}}").dialog('open'); - return false; -}); + }, + close: function(event, ui){ + //pause all medias + $('video').each(function(index){$(this).pause()}); + $('audio').each(function(index){$(this).pause()}); + $('.tabs').tabs('destroy'); -$(document).ready(function(){ + } + }); + $('.show_gallery_link').click(function(){ + $("#gallery-{{marker.pk}}").dialog('open'); + return false; + }); $("a[rel^='prettyPhoto']").prettyPhoto({ show_title: false, social_tools: '' |
