Changeset 21522 for branches/version-2_12-dev/data/Smarty/templates
- Timestamp:
- 2012/02/16 14:24:52 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/Smarty/templates/admin/system/plugin.tpl
r21513 r21522 27 27 /** 28 28 * 「有効/有効にする」チェックボタン押下時 29 * ajaxでPOSTする.30 29 */ 31 30 $('input[id^=plugin_enable]').change(function(event) { 32 var data = {};33 31 // モード(有効 or 無効) 34 data.mode = event.target.name;32 var mode = event.target.name; 35 33 36 if( data.mode === 'disable') {34 if(mode === 'disable') { 37 35 result = window.confirm('プラグインを無効しても宜しいですか?'); 38 } else if( data.mode === 'enable') {36 } else if(mode === 'enable') { 39 37 result = window.confirm('プラグインを有効にしても宜しいですか?'); 40 38 } 41 if(result ){39 if(result === true){ 42 40 // プラグインID 43 data.plugin_id = event.target.value; 44 data['<!--{$smarty.const.TRANSACTION_ID_NAME}-->'] = '<!--{$transactionid}-->'; 45 $.ajax({ 46 type : 'POST', 47 url : location.pathname, 48 dataType : "json", 49 data: data, 50 cache : false, 51 error : remoteException, 52 success : function(data, dataType) { 53 window.location.reload(); 54 alert(data.message); 55 } 56 }); 41 var plugin_id = event.target.value; 42 fnModeSubmit(mode, 'plugin_id', plugin_id); 57 43 } 58 44 });
Note: See TracChangeset
for help on using the changeset viewer.