X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..f769689fb6c21d76aa70f4113ba918e45b528576:/src/redakcja/static/js/wiki_img/loader_readonly.js diff --git a/src/redakcja/static/js/wiki_img/loader_readonly.js b/src/redakcja/static/js/wiki_img/loader_readonly.js old mode 100755 new mode 100644 index 99e5ad0e..c5d370ae --- a/src/redakcja/static/js/wiki_img/loader_readonly.js +++ b/src/redakcja/static/js/wiki_img/loader_readonly.js @@ -24,12 +24,12 @@ $(function() /* * TABS */ - $('#tabs li').live('click', function(event, callback) { + $(document).on('click', '#tabs li', function(event, callback) { event.preventDefault(); $.wiki.switchToTab(this); }); - $('#tabs li > .tabclose').live('click', function(event, callback) { + $(document).on('click', '#tabs li > .tabclose', function(event, callback) { var $tab = $(this).parent(); if($tab.is('.active')) @@ -88,6 +88,6 @@ $(function() /* * Initialize all perspectives */ - initAll( $.makeArray($('ol#tabs li')), initialize); + initAll( $.makeArray($('#tabs li')), initialize); console.log(location.hash); });