Changeset 16878
- Timestamp:
- 2007/12/03 22:05:04 (16 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/Smarty/templates/default/admin/ownersstore/products_list.tpl
r16875 r16878 30 30 31 31 <td align="center"> 32 <div id="ownersstore_download"> 32 33 <!--{* インストール済み かつ 新バージョンが公開している場合 はアップデートボタン表示 *}--> 33 34 <!--{if $product.installed_flg && $product.version_up_flg}--> … … 43 44 -- 44 45 <!--{/if}--> 46 </div> 45 47 </td> 46 48 … … 54 56 </span> 55 57 <!--{else}--> 56 -- 58 <div id='ownersstore_settings' style="display:none"> 59 <span class="icon_confirm"> 60 <a href="" onclick="win02('../load_module_config.php?module_id=<!--{$product.product_id}-->', 'load', 600, 400);return false;"> 61 設定 62 </a> 63 </span> 64 </div> 65 <div id='ownersstore_settings_default' style="display:bloc">--</div> 57 66 <!--{/if}--> 58 67 </td> -
branches/feature-module-update/html/user_data/packages/default/js/ownersstore.js.php
r16842 r16878 90 90 $('#TB_load').show(); 91 91 }, 92 92 93 // show results 93 show_result: function(resp, status) { 94 var title = resp.status; 95 var contents = resp.msg; 96 var errcode = resp.errcode || '1000'; 94 show_result: function(resp, status, product_id) { 95 var title = resp.status || 'ERROR'; 96 var contents = resp.msg || ''; 97 97 98 98 var TB_WIDTH = 400; … … 115 115 $("#TB_ajaxContent")[0].style.height = ajaxContentH +"px"; 116 116 $("#TB_ajaxContent")[0].scrollTop = 0; 117 118 117 } 119 118 … … 129 128 $("#TB_ajaxContent").html(contents); 130 129 $("#TB_window").css({display:"block"}); 130 131 // DL成功時に設定ボタンを表示 132 if (resp.status == 'SUCCESS' && product_id) { 133 $('#ownersstore_settings_default').hide(); // --を非表示 134 $('#ownersstore_settings').show(); // 設定ボタン表示 135 $('#ownersstore_download').html('--'); // インストール/アップロードボタンを--へ変換 136 } 131 137 }, 132 138 … … 134 140 download: function(product_id) { 135 141 this.show_loading(); 142 var show = this.show_result; 136 143 $.post( 137 144 upgrade_url, 138 145 {mode: 'download', product_id: product_id}, 139 this.show_result, 146 function(resp, status) { 147 show(resp, status, product_id); 148 }, 140 149 'json' 141 150 ) 142 151 }, 152 143 153 // get products list 144 154 products_list: function() { … … 148 158 $().ajaxError(this.show_result); 149 159 $.post( 150 upgrade_url,160 upgrade_url, 151 161 {mode: 'products_list'}, 152 162 function(resp, status) {
Note: See TracChangeset
for help on using the changeset viewer.