X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..92d4704c889df1405c4d2c34e1fce5e5c1ced680:/src/redakcja/static/js/wiki/loader_readonly.js?ds=sidebyside diff --git a/src/redakcja/static/js/wiki/loader_readonly.js b/src/redakcja/static/js/wiki/loader_readonly.js index a859ec69..43b8c9b8 100644 --- a/src/redakcja/static/js/wiki/loader_readonly.js +++ b/src/redakcja/static/js/wiki/loader_readonly.js @@ -23,12 +23,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); -}); \ No newline at end of file +});