Changeset 21512 for branches/version-2_12-dev/data/Smarty
- Timestamp:
- 2012/02/15 19:38:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/Smarty/templates/admin/system/plugin.tpl
r21501 r21512 25 25 $(function() { 26 26 27 /** 28 * 「有効/有効にする」チェックボタン押下時 29 * ajaxでPOSTする. 30 */ 27 31 $('input[id^=plugin_enable]').change(function(event) { 28 32 var data = {}; … … 54 58 }); 55 59 56 /** 57 * 通信エラー表示. 58 */ 59 function remoteException(XMLHttpRequest, textStatus, errorThrown) { 60 alert('通信中にエラーが発生しました。'); 61 } 62 60 /** 61 * 通信エラー表示. 62 */ 63 function remoteException(XMLHttpRequest, textStatus, errorThrown) { 64 alert('通信中にエラーが発生しました。'); 65 } 66 67 /** 68 * アップデートリンク押下時の処理. 69 */ 63 70 $('.update_link').click(function(event) { 64 71 var plugin_id = event.target.name; … … 67 74 }); 68 75 69 76 /** 77 * アプデートボタン押下時の処理. 78 * アップデート対象ファイル以外はPOSTされない様にdisabled属性を付与 79 */ 70 80 function removeUpdateFile(select_id) { 71 81 $('input[name="update_plugin_file"]').attr("disabled", "disabled"); 72 82 $('input[id="' + select_id + '"]').removeAttr("disabled"); 73 83 } 74 84 85 /** 86 * インストール 87 */ 75 88 function install() { 76 89 if (window.confirm('プラグインをインストールしても宜しいでしょうか?')){ 77 fnModeSubmit('install' , '', '');90 fnModeSubmit('install'); 78 91 } 79 92 } 80 93 94 /** 95 * アンインストール(削除) 96 */ 81 97 function uninstall(plugin_id, plugin_code) { 82 98 if (window.confirm('一度削除したデータは元に戻せません。\nプラグインを削除しても宜しいですか?')){ … … 86 102 } 87 103 104 /** 105 * アップデート 106 */ 88 107 function update(plugin_id, plugin_code) { 89 108 if (window.confirm('プラグインをアップデートしても宜しいですか?')){ … … 94 113 } 95 114 96 function priority(plugin_id) { 97 if (window.confirm('プラグインをアップデートしても宜しいですか?')){ 98 fnModeSubmit('priority','plugin_id',plugin_id); 99 } 100 } 101 115 116 /** 117 * 優先度変更. 118 */ 119 function priority(plugin_id, plugin_code) { 120 var priority = $("*[name=priority_" + plugin_code +"]").val(); 121 fnSetFormValue('priority', priority); 122 fnModeSubmit('priority','plugin_id',plugin_id); 123 } 102 124 103 125 //]]> … … 202 224 </td> 203 225 <!--優先順位--> 204 <!--{assign var=key value="rank"}-->205 226 <td class="center"> 206 227 <span class="attention"><!--{$arrErr.priority[$plugin.plugin_id]}--></span> 207 <input type="text" class="center" name="priority " value="<!--{$plugin.rank|h}-->" size="1" class="rank" />208 <a class="btn-action" href="javascript:;" onclick="priority(<!--{$plugin.plugin_id}--> );return false;"><span class="btn-next">変更</span></a><br/>228 <input type="text" class="center" name="priority_<!--{$plugin.plugin_code}-->" value="<!--{$plugin.priority|h}-->" size="1" class="priority" /> 229 <a class="btn-action" href="javascript:;" onclick="priority(<!--{$plugin.plugin_id}-->, '<!--{$plugin.plugin_code}-->');return false;"><span class="btn-next">変更</span></a><br/> 209 230 </td> 210 231 </tr>
Note: See TracChangeset
for help on using the changeset viewer.