]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - js/screen.js
improved the page editor
[Rakka.git] / js / screen.js
index 0ac558b9f6da97e52bcf479f8f2c9e937f1a7efb..9fc50e76e93f518c84b13e91164de7ca213c7de6 100644 (file)
@@ -8,6 +8,8 @@
             
             $("div.sideBar div.outline").hide();
 
+            $("p.redirection").hide();
+
             $("div.body")
                 .children()
                     .hide()
@@ -28,6 +30,8 @@
 
         $("div.sideBar div.outline").show();
 
+        $("p.redirection").show();
+
         $(switchedArea).remove();
         switchedArea = null;
 
         return null;
     };
 
+    Rakka.getSwitchedScreen = function () {
+        return switchedArea;
+    };
+
+    Rakka.scrollToTopLeft = function () {
+        $("div.center").each(function () {
+            this.scrollTop  = 0;
+            this.scrollLeft = 0;
+        });
+    };
+
     var waitingMessageBoard = null;
 
     Rakka.displayWaitingMessage = function (msg) {