You will find only what you bring in.
[redakcja.git] / src / wiki / static / wiki / js / sidebar-perspective.js
diff --git a/src/wiki/static/wiki/js/sidebar-perspective.js b/src/wiki/static/wiki/js/sidebar-perspective.js
new file mode 100644 (file)
index 0000000..a35a60b
--- /dev/null
@@ -0,0 +1,21 @@
+(function($) {
+
+    
+    SidebarPerspective = function(options) {
+        this.noupdate_hash_onenter = true;
+        $.wiki.Perspective.call(this, options);
+    };
+    
+    SidebarPerspective.prototype = new $.wiki.Perspective();
+
+    SidebarPerspective.prototype.onEnter = function(success, failure) {
+        $.wiki.Perspective.prototype.onEnter.call(this);
+
+        $('#vsplitbar').not('.active').trigger('click');
+        $(".vsplitbar-title").text(this.vsplitbar);
+    }
+    
+    $.wiki.SidebarPerspective = SidebarPerspective;
+
+
+})(jQuery);