Changeset 19914


Ignore:
Timestamp:
2011/01/14 17:25:59 (10 years ago)
Author:
nanasess
bzr:base-revision:
svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_5-dev:19913
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/Smarty/templates/admin/contents/csv_sql.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fadmin%2Fcontents%2Fcsv_sql.tpl
data/Smarty/templates/admin/design/bloc.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fadmin%2Fdesign%2Fbloc.tpl
data/Smarty/templates/admin/design/css.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fadmin%2Fdesign%2Fcss.tpl
data/Smarty/templates/admin/design/header.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fadmin%2Fdesign%2Fheader.tpl
data/Smarty/templates/admin/design/main_edit.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fadmin%2Fdesign%2Fmain_edit.tpl
data/install.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Finstall.php
html/js/site.js site.js-20101208110316-7ungq6kj49bhw4d1-7
bzr:mapping-version:
v4
bzr:merge:

ohkouchi@loop-az.jp-20110114082030-q8bpf5ljgcf7k9vc
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20110114082556-4m3xuh0c4yiq6gip
bzr:revno:
2643
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:text-revisions:

data/Smarty/templates/admin/contents/csv_sql.tpl ohkouchi@loop-az.jp-20110114082030-q8bpf5ljgcf7k9vc
data/Smarty/templates/admin/design/bloc.tpl ohkouchi@loop-az.jp-20110114082030-q8bpf5ljgcf7k9vc
data/Smarty/templates/admin/design/css.tpl ohkouchi@loop-az.jp-20110114082030-q8bpf5ljgcf7k9vc
data/Smarty/templates/admin/design/header.tpl ohkouchi@loop-az.jp-20110114082030-q8bpf5ljgcf7k9vc
data/Smarty/templates/admin/design/main_edit.tpl ohkouchi@loop-az.jp-20110114082030-q8bpf5ljgcf7k9vc
bzr:timestamp:
2011-01-14 17:25:56.982000113 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2011-01-14T08:25:56.982000Z
Message:

#382(管理画面XHTMLに変更)

  • 拡大/縮小ボタンが動作しなくなっていたのを修正
Location:
branches/version-2_5-dev
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/admin/contents/csv_sql.tpl

    r19909 r19914  
    2424<script type="text/javascript"> 
    2525<!-- 
    26 // リストボックスのサイズ変更 
    27 function ChangeSize(button, TextArea, Max, Min, row_tmp){ 
    28   if(TextArea.rows <= Min){ 
    29     TextArea.rows=Max; button.value="小さくする"; row_tmp.value=Max; 
    30   }else{ 
    31     TextArea.rows =Min; button.value="大きくする"; row_tmp.value=Min; 
    32   } 
    33 } 
    34  
    3526// SQL確認画面起動 
    3627function doPreview(){ 
  • branches/version-2_5-dev/data/Smarty/templates/admin/design/bloc.tpl

    r19909 r19914  
    5252     <tr> 
    5353         <td colspan="2"> 
    54              <textarea name="bloc_html" rows="<!--{$text_row}-->" style="width: 100%;"><!--{$arrBlocData.tpl_data|smarty:nodefaults}--></textarea> 
     54             <textarea id="bloc_html" name="bloc_html" rows="<!--{$text_row}-->" style="width: 100%;"><!--{$arrBlocData.tpl_data|smarty:nodefaults}--></textarea> 
    5555             <input type="hidden" name="html_area_row" value="<!--{$text_row}-->" /> 
    5656             <div> 
    57                  <a class="btn-normal" href="javascript:;" onclick="ChangeSize(this, bloc_html, 50, 13, 'html_area_row')">拡大</a> 
     57                 <a id="resize-btn" class="btn-normal" href="javascript:;" onclick="ChangeSize('#resize-btn', '#bloc_html', 50, 13)">拡大</a> 
    5858             </div> 
    5959         </td> 
  • branches/version-2_5-dev/data/Smarty/templates/admin/design/css.tpl

    r19909 r19914  
    4141      <th>CSS内容</th> 
    4242      <td> 
    43         <textarea name="css" cols=90 rows=<!--{$area_row}--> align="left" wrap=off style="width: 650px;"><!--{$css_data}--></textarea> 
     43        <textarea id="css" name="css" cols=90 rows=<!--{$area_row}--> align="left" wrap=off style="width: 650px;"><!--{$css_data}--></textarea> 
    4444        <input type="hidden" name="area_row" value="<!--{$area_row}-->" /> 
    4545        <div class="btn"> 
    46           <a class="btn-normal" href="javascript:;" onclick="ChangeSize(this, 'css', 50, 30, 'area_row')">拡大</a> 
     46          <a id="resize-btn" class="btn-normal" href="javascript:;" onclick="ChangeSize('#resize-btn', '#css', 50, 30)">拡大</a> 
    4747        </div> 
    4848      </td> 
  • branches/version-2_5-dev/data/Smarty/templates/admin/design/header.tpl

    r19909 r19914  
    4949  <input type="hidden" name="device_type_id" value="<!--{$device_type_id|h}-->" /> 
    5050 
    51     <textarea name="header" rows="<!--{$header_row}-->" wrap="off" style="width: 100%;"><!--{$header_data|smarty:nodefaults}--></textarea> 
     51    <textarea id="header-area" name="header" rows="<!--{$header_row}-->" wrap="off" style="width: 100%;"><!--{$header_data|smarty:nodefaults}--></textarea> 
    5252    <div class="btn"> 
    53       <a class="btn-normal" href="javascript:;" onclick="ChangeSize(this, 'header', 50, 13, 'header_row')"><span><!--{if $header_row > 13}-->縮小<!--{else}-->拡大<!--{/if}--></span></a> 
     53      <a id="header-area-resize-btn" class="btn-normal" href="javascript:;" onclick="ChangeSize('#header-area-resize-btn', '#header-area', 50, 13)"><span>拡大</span></a> 
    5454    </div> 
    5555    <div class="btn"> 
     
    7979  <input type="hidden" name="device_type_id" value="<!--{$device_type_id|h}-->" /> 
    8080 
    81     <textarea name="footer" rows="<!--{$footer_row}-->" style="width: 100%;"><!--{$footer_data|smarty:nodefaults}--></textarea> 
     81    <textarea id="footer-area" name="footer" rows="<!--{$footer_row}-->" style="width: 100%;"><!--{$footer_data|smarty:nodefaults}--></textarea> 
    8282    <div class="btn"> 
    83       <a class="btn-normal" href="javascript:;" onclick="ChangeSize(this, 'footer', 50, 13, 'footer_row')"><span><!--{if $footer_row > 13}-->縮小<!--{else}-->拡大<!--{/if}--></span></a> 
     83      <a id="footer-area-resize-btn" class="btn-normal" href="javascript:;" onclick="ChangeSize('#footer-area-resize-btn', '#footer-area', 50, 13)"><span>拡大</span></a> 
    8484    </div> 
    8585    <div class="btn"> 
  • branches/version-2_5-dev/data/Smarty/templates/admin/design/main_edit.tpl

    r19909 r19914  
    9393                <label for="footer-chk"><input type="checkbox" name="footer_chk" id="footer-chk" <!--{$arrPageData.footer_chk}--> />共通のフッターを使用する</label> 
    9494                <div> 
    95                     <textarea name="tpl_data" rows=<!--{$text_row}--> style="width: 100%;"><!--{$arrPageData.tpl_data|h|smarty:nodefaults}--></textarea> 
     95                    <textarea id="tpl_data" name="tpl_data" rows=<!--{$text_row}--> style="width: 100%;"><!--{$arrPageData.tpl_data|h|smarty:nodefaults}--></textarea> 
    9696                    <input type="hidden" name="html_area_row" value="<!--{$text_row}-->" /> 
    97                     <a class="btn-normal" href="javascript:;" onclick="ChangeSize(this, 'tpl_data', 50, 13, 'html_area_row')"><span><!--{if $text_row > 13}-->縮小<!--{else}-->拡大<!--{/if}--></span></a> 
     97                    <a id="resize-btn" class="btn-normal" href="javascript:;" onclick="ChangeSize('#resize-btn', '#tpl_data', 50, 13)"><span>拡大</span></a> 
    9898                </div> 
    9999            </td> 
  • branches/version-2_5-dev/html/js/site.js

    r19860 r19914  
    360360 
    361361// テキストエリアのサイズを変更する. 
    362 function ChangeSize(button, TextArea, Max, Min, row_tmp){ 
    363  
    364     if(TextArea.rows <= Min){ 
    365         TextArea.rows=Max; button.value="縮小"; row_tmp.value=Max; button.innerHTML="縮小"; 
    366     }else{ 
    367         TextArea.rows =Min; button.value="拡大"; row_tmp.value=Min; button.innerHTML="拡大"; 
    368     } 
    369 } 
     362function ChangeSize(buttonSelector, textAreaSelector, max, min) { 
     363 
     364    if ($(textAreaSelector).attr('rows') <= min) { 
     365        $(textAreaSelector).attr('rows', max); 
     366        $(buttonSelector).text('縮小'); 
     367    } else { 
     368        $(textAreaSelector).attr('rows', min); 
     369        $(buttonSelector).text('拡大'); 
     370    } 
     371} 
Note: See TracChangeset for help on using the changeset viewer.