OSDN Git Service

next.
authorvisor <visor@users.sourceforge.jp>
Mon, 1 Jun 2009 14:50:12 +0000 (23:50 +0900)
committervisor <visor@users.sourceforge.jp>
Mon, 1 Jun 2009 14:50:12 +0000 (23:50 +0900)
i/wiki.js
op-login.hml

index 906f92b..13a1096 100644 (file)
--- a/i/wiki.js
+++ b/i/wiki.js
@@ -73,7 +73,14 @@ function showWiki(xml){
 }
 //
 function SubmitForm(form,page,data,func){
-       callWiki(page,form.serialize(true).update(data),func);
+       if(func){
+               callWiki(page,form.serialize(true).update(data),func);
+       }else{
+               var f=function(r){
+                       showWiki(r.responseXML.documentElement);
+               };
+               callWiki(page,form.serialize(true).update(data),f);
+       }
 }
 //
 Element.prototype.showDialog=function(){
@@ -160,6 +167,7 @@ function opEditSel(sel){
        case '3':
                $('EditWikiPane').style.display='none';
                $('EditOprPane').style.display='block';
+               readWiki('special-Diff',undefined,'EditOprPane');
                break;
        }
 }
index cff5bc6..b7b78ad 100644 (file)
@@ -14,7 +14,7 @@ ml_debug
 (if (password-match Password cpw)
                (progn
                        ($login-cookie "wikisession" "WikiSession"
-                               (login "1" (* 3600 6))
+                               (login uid (* 3600 6))
                        )
                        (motor-output "OK")
                )