Show
Ignore:
Timestamp:
05/05/08 07:59:22 (8 months ago)
Author:
inureyes
Message:

#953

  • 기능 추가
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/owner/communication/link/add/index.php

    r5696 r5875  
    1111                        <script type="text/javascript"> 
    1212                            //<![CDATA[ 
     13                                var RSSread = false; 
    1314                                function getSiteInfo() { 
    1415                                    if(document.getElementById('addForm').rss.value == '') { 
     
    3031                                        document.getElementById('addForm').name.value = unescape(this.getText("/response/name")); 
    3132                                        document.getElementById('addForm').url.value = this.getText("/response/url"); 
     33                                        RSSread = true; 
    3234                                        return true; 
    3335                                    } 
     
    4345                                function addLink() { 
    4446                                    var oForm = document.getElementById('addForm'); 
     47                                    var addRSS = false; 
    4548                                    trimAll(oForm); 
    4649                                    if (!checkValue(oForm.name, "<?php echo _t('이름을 입력해 주십시오.');?>\t")) return false; 
    4750                                    if (!checkValue(oForm.url, "<?php echo _t('주소를 입력해 주십시오.');?>\t")) return false; 
     51<?php 
     52if($service['reader'] != false) { 
     53?> 
     54                                    if (oForm.rss != '' && RSSread == true) { 
     55                                        if(confirm('<?php echo _t('이 링크의 RSS를 바깥 글 읽기에 추가하시겠습니까?\n추가하면 바깥 글 읽기 메뉴에서 해당 링크의 새 글을 읽을 수 있습니다.');?>')) 
     56                                            addRSS = true; 
     57                                    } 
     58<?php 
     59} 
     60?> 
     61                                    if(addRSS == true) { 
     62                                        var request = new HTTPRequest("POST", blogURL + "/owner/reader/action/feed/add/"); 
     63                                        request.onSuccess = function () { 
     64                                        } 
     65                                        request.onError= function () { 
     66                                        } 
     67                                        request.send("group=0&url=" + encodeURIComponent(oForm.rss.value)); 
     68                                    } 
    4869                                     
    4970                                    var request = new HTTPRequest("POST", blogURL + "/owner/communication/link/add/exec/");