Changeset 4609

Show
Ignore:
Timestamp:
10/23/07 01:57:17 (2 years ago)
Author:
inureyes
Message:

#718

  • EAF에서 GET method로 데이터 보낼 때 제대로 동작하도록 수정.
Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/blog/owner/setting/blog/index.php

    r4608 r4609  
    257257                                     
    258258                                    var request = new HTTPRequest("GET", "<?php echo $blogURL;?>/owner/setting/blog/publishRSS/" + (document.getElementById('rss-form').publishEolinSyncOnRSS[0].checked ? 1 : 0)); 
     259<?php 
     260    if($service['useRewriteEngine'] == false) { 
     261?> 
     262                                    request.correcturl = true; 
     263<?php 
     264    } 
     265?> 
    259266                                    request.onSuccess = function() { 
    260267                                        publishEolinSyncOnRSS = document.getElementById('rss-form').publishEolinSyncOnRSS[0].checked ? 1 : 0; 
     
    268275                                    if (document.getElementById('rss-form').entriesOnRSS.value != entriesOnRSS) { 
    269276                                        var request = new HTTPRequest("GET", "<?php echo $blogURL;?>/owner/setting/rss/entries/" + document.getElementById('rss-form').entriesOnRSS.value); 
     277<?php 
     278    if($service['useRewriteEngine'] == false) { 
     279?> 
     280                                        request.correcturl = true; 
     281<?php 
     282    } 
     283?> 
    270284                                        request.onSuccess = function() { 
    271285                                            entriesOnRSS = document.getElementById('rss-form').entriesOnRSS.value; 
     
    280294                                    if (document.getElementById('rss-form').publishWholeOnRSS.value != publishWholeOnRSS) { 
    281295                                        var request = new HTTPRequest("GET", "<?php echo $blogURL;?>/owner/setting/rss/whole/" + document.getElementById('rss-form').publishWholeOnRSS.value); 
     296<?php 
     297    if($service['useRewriteEngine'] == false) { 
     298?> 
     299                                        request.correcturl = true; 
     300<?php 
     301    } 
     302?> 
    282303                                        request.onSuccess = function() { 
    283304                                            publishWholeOnRSS = document.getElementById('rss-form').publishWholeOnRSS.value; 
     
    294315                                    if ( isAllowCommentGuestbook != allowCommentGuestbook) { 
    295316                                        var request = new HTTPRequest("GET", "<?php echo $blogURL;?>/owner/setting/blog/guestbook/?comment="+isAllowCommentGuestbook+"&write=1"); 
     317<?php 
     318    if($service['useRewriteEngine'] == false) { 
     319?> 
     320                                        request.correcturl = true; 
     321<?php 
     322    } 
     323?> 
    296324                                        request.onSuccess = function() { 
    297325                                            allowCommentGuestbook = isAllowCommentGuestbook; 
  • trunk/script/EAF3.js

    r4606 r4609  
    316316HTTPRequest.prototype.correcturl  = false; 
    317317HTTPRequest.prototype.id          = null; 
     318HTTPRequest.prototype.getfragment = ""; 
    318319HTTPRequest.prototype.contentType = "application/x-www-form-urlencoded"; 
    319320HTTPRequest.prototype.content     = ""; 
     
    407408    }; 
    408409    if(this.correcturl != false) this.url = this.url+'/index.php'; 
     410    if(this.method == 'GET'){ 
     411        if(this.getfragment.length > 0) { 
     412            this.url=this.url+this.getfragment; 
     413            if(this.id != null) {this.url=this.url+'&id='+this.id} 
     414        } else { 
     415            if(this.id != null) {this.url=this.url+'?id='+this.id} 
     416        } 
     417    } 
    409418    if(this.cache) this._request.open(this.method,this.url,this.async); 
    410419    else if(this.url.lastIndexOf("?") >= 0) 
     
    472481        if(idCandidate.toString().search(/^-?[0-9]+$/) == 0) { 
    473482            this.id = idCandidate; 
    474             url = url.substring(0,idIndex); 
     483        } else { // Usually GET method. 
     484            this.getfragment = idCandidate; 
    475485        } 
     486        url = url.substring(0,idIndex); 
    476487    } 
    477488    return url;