X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a6767b2d034dcf53d6e88b3e0b6eadfebc5adab1..cea1338141dcef9834201621c6a2b2cd9ee6b546:/src/redakcja/static/js/wiki_img/loader_readonly.js?ds=inline diff --git a/src/redakcja/static/js/wiki_img/loader_readonly.js b/src/redakcja/static/js/wiki_img/loader_readonly.js index 99e5ad0e..c5d370ae 100644 --- 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); });