Fixes #4191: backward search.
[redakcja.git] / src / redakcja / static / js / wiki / loader_readonly.js
index a859ec6..43b8c9b 100644 (file)
@@ -23,12 +23,12 @@ $(function()
                /*
                 * TABS
                 */
                /*
                 * TABS
                 */
-        $('#tabs li').live('click', function(event, callback) {
+            $(document).on('click', '#tabs li', function(event, callback) {
             event.preventDefault();
                        $.wiki.switchToTab(this);
         });
 
             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'))
                        var $tab = $(this).parent();
 
                        if($tab.is('.active'))
@@ -88,6 +88,6 @@ $(function()
        /*
         * Initialize all perspectives
         */
        /*
         * Initialize all perspectives
         */
-       initAll( $.makeArray($('ol#tabs li')), initialize);
+       initAll( $.makeArray($('#tabs li')), initialize);
        console.log(location.hash);
        console.log(location.hash);
-});
\ No newline at end of file
+});