]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/mobile.js
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
[citadel.git] / webcit / static / mobile.js
index 4181130912142ff5e138207b426b65f66f5c1371..dc1485728e58ac1ba960ec5836eb3c37ee17ec47 100644 (file)
@@ -1,7 +1,11 @@
+/*
+ * Copyright 2005 - 2009 The Citadel Team
+ * Licensed under the GPL V3
+ */
+
 var currentMsgDisplay = null;
 function CtdlLoadMsgMouseDown(event, msgnum) {
-       alert("CtdlLoadMsgMouseDown");
-       if (currentMsgDisplay != null) {
+  /*   if (currentMsgDisplay != null) {
                currentMsgDisplay.style.display = "none";
        } 
        var id = "m_"+msgnum;
@@ -14,12 +18,13 @@ req.open('GET', '/msg/'+msgnum, true);
 req.onreadystatechange = function (aEvt) {
   if (req.readyState == 4) {
      if(req.status == 200)
-      currentMsgDisplay.innerHTML = "<button onMouseDown=\"CtdlHideMsg()\">(Hide message)</button><br/>"+req.responseText;
+      currentMsgDisplay.innerHTML = "<button onMouseDown=\"CtdlHideMsg()\">(Hide message)</button><br>"+req.responseText;
      else
       currentMsgDisplay.innerHTML = "Error loading message";
   }
 };
-req.send(null);
+req.send(null); */
+  window.location = "/mobilemsg/"+msgnum;
 }
 function CtdlHideMsg() {
        currentMsgDisplay.style.display = "none";