Changeset 4609
- Timestamp:
- 10/23/07 01:57:17 (2 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
blog/owner/setting/blog/index.php (modified) (4 diffs)
-
script/EAF3.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/blog/owner/setting/blog/index.php
r4608 r4609 257 257 258 258 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 ?> 259 266 request.onSuccess = function() { 260 267 publishEolinSyncOnRSS = document.getElementById('rss-form').publishEolinSyncOnRSS[0].checked ? 1 : 0; … … 268 275 if (document.getElementById('rss-form').entriesOnRSS.value != entriesOnRSS) { 269 276 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 ?> 270 284 request.onSuccess = function() { 271 285 entriesOnRSS = document.getElementById('rss-form').entriesOnRSS.value; … … 280 294 if (document.getElementById('rss-form').publishWholeOnRSS.value != publishWholeOnRSS) { 281 295 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 ?> 282 303 request.onSuccess = function() { 283 304 publishWholeOnRSS = document.getElementById('rss-form').publishWholeOnRSS.value; … … 294 315 if ( isAllowCommentGuestbook != allowCommentGuestbook) { 295 316 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 ?> 296 324 request.onSuccess = function() { 297 325 allowCommentGuestbook = isAllowCommentGuestbook; -
trunk/script/EAF3.js
r4606 r4609 316 316 HTTPRequest.prototype.correcturl = false; 317 317 HTTPRequest.prototype.id = null; 318 HTTPRequest.prototype.getfragment = ""; 318 319 HTTPRequest.prototype.contentType = "application/x-www-form-urlencoded"; 319 320 HTTPRequest.prototype.content = ""; … … 407 408 }; 408 409 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 } 409 418 if(this.cache) this._request.open(this.method,this.url,this.async); 410 419 else if(this.url.lastIndexOf("?") >= 0) … … 472 481 if(idCandidate.toString().search(/^-?[0-9]+$/) == 0) { 473 482 this.id = idCandidate; 474 url = url.substring(0,idIndex); 483 } else { // Usually GET method. 484 this.getfragment = idCandidate; 475 485 } 486 url = url.substring(0,idIndex); 476 487 } 477 488 return url;
