Changeset 8652

Show
Ignore:
Timestamp:
07/05/10 08:34:48 (2 months ago)
Author:
inureyes
Message:

refs #777

  • 코드 보정
Location:
branches/1.8
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.8/interface/owner/entry/edit/index.php

    r8534 r8652  
    750750                                     
    751751                                    <hr class="hidden" /> 
    752                                                                          
     752 
     753                                    <div id="setting-section"> 
     754                                    <script type="text/javascript"> 
     755                                    //<![CDATA[ 
     756                                        var settingMenus = new Array("upload-container","tag-location-container","power-container"); 
     757                                    //]]> 
     758                                    </script> 
    753759                                    <div id="upload-section" class="section"> 
    754                                         <h3><a href="#void" onclick="toggleLayer('upload-detail');return false;"><?php echo _t('업로드');?></a></h3> 
    755                                         <div id="upload-detail"> 
     760                                        <h3><a href="#void" onclick="focusLayer('upload-container',settingMenus);return false;"><?php echo _t('업로드');?></a></h3> 
     761                                        <div id="upload-container"> 
    756762                                            <div id="attachment-container" class="container"> 
    757763<?php 
     
    788794                                     
    789795                                    <div id="taglocal-section" class="section"> 
    790                                         <h3><?php echo _t('태그 &amp; 위치');?></h3> 
     796                                        <h3><a href="#void" onclick="focusLayer('tag-location-container',settingMenus);return false;"><?php echo _t('태그 &amp; 위치');?></a></h3> 
    791797                                                 
    792798                                        <div id="tag-location-container" class="container"> 
     
    835841 
    836842                                    <div id="power-section" class="section"> 
     843                                        <h3><a href="#void" onclick="focusLayer('power-container',settingMenus);return false;"><?php echo _t('기타 설정');?></a></h3> 
     844                                         
    837845                                        <div id="power-container" class="container"> 
    838846                                            <dl id="permalink-line" class="line"<?php if($isKeyword) echo ' style="display: none"';?>> 
     
    886894                                        </div> 
    887895                                    </div> 
    888  
     896                                    </div><!-- setting-section --> 
    889897                                    <hr class="hidden clear" /> 
    890898                                     
  • branches/1.8/resources/script/common2.js

    r8634 r8652  
    230230    return true; 
    231231} 
     232 
     233function focusLayer(id, others) { 
     234    try { 
     235        var obj = document.getElementById(id); 
     236        obj.style.display = "block"; 
     237        for (x in others) { 
     238            if(others[x] != id) { 
     239                var obj = document.getElementById(others[x]); 
     240                obj.style.display = "none"; 
     241            } 
     242        } 
     243    } catch (e) { 
     244    } 
     245    return true; 
     246} 
     247 
    232248function showLayer(id) { 
    233249    document.getElementById(id).style.display = "block";