Changeset 2609

Show
Ignore:
Timestamp:
11/28/06 15:26:03 (2 years ago)
Author:
graphittie
Message:
  • /owner/entry/edit에 직접 접근하는 경우, requestURL 값이 없어 자바스크립트 오류가 나는 문제 해결.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sandbox/blog/owner/entry/edit/item.php

    r2605 r2609  
    227227                                            } 
    228228                                            PM.removeRequest(this); 
    229                                             var returnURI = ""; 
    230229                                            var oForm = document.forms[0]; 
    231230                                            var changedPermalink = trim(oForm.permalink.value); 
     231<?php 
     232if (isset($_GET['popupEditor'])) { 
     233?> 
     234                                            opener.location.href = opener.location.href; 
     235                                            window.close(); 
     236<?php 
     237} else if (isset($_GET['returnURL'])) { 
     238?> 
     239                                            var returnURI = ""; 
    232240                                            if(originalPermalink == changedPermalink) { 
    233241                                                returnURI = "<?php echo escapeJSInCData($_GET['returnURL']);?>"; 
     
    235243                                                returnURI = "<?php echo escapeJSInCData("$blogURL/" . $entry['id']);?>"; 
    236244                                            } 
    237 <?php 
    238 if (isset($_GET['popupEditor'])) { 
    239 ?> 
    240                                             opener.location.href = opener.location.href; 
    241                                             window.close(); 
    242 <?php 
    243 } else if (isset($_GET['returnURL'])) { 
    244 ?> 
    245245                                            window.location = returnURI; 
    246246<?php