From 1e71763dc8583af4d67d18a410434b945c3229b2 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 16 Nov 2017 20:07:38 +0100 Subject: UI: improve sheets --- ishtar_common/static/js/ishtar.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ishtar_common/static/js') diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js index f09117d11..dfe59105c 100644 --- a/ishtar_common/static/js/ishtar.js +++ b/ishtar_common/static/js/ishtar.js @@ -201,9 +201,6 @@ $(document).ready(function(){ $('#language-form').submit(); }); load_shortcut_menu(); - if ($.isFunction($(".prettyPhoto a").prettyPhoto)){ - $(".prettyPhoto a").prettyPhoto({'social_tools':''}); - } $('#current_items select').change(function(){ $(this).attr('class', $(this).children("option:selected").attr('class')); }); @@ -273,9 +270,10 @@ function load_window(url, speed, on_success){ cache: false, success:function(html){ $("#progress").hide(); + $(".previous_page").remove(); + $(".next_page").remove(); $("#window").append(html); $("#"+last_window).show(); - $("a[rel^='prettyPhoto']").prettyPhoto({'social_tools':''}); if (on_success) on_success(); }, error:function(XMLHttpRequest, textStatus, errorThrows){ -- cgit v1.2.3