Ignore:
Timestamp:
2012/02/16 14:24:52 (12 years ago)
Author:
h_yoshimoto
Message:

#1632 プラグイン有効無効処理を修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/Smarty/templates/admin/system/plugin.tpl

    r21513 r21522  
    2727       /** 
    2828        * 「有効/有効にする」チェックボタン押下時 
    29         * ajaxでPOSTする. 
    3029        */ 
    3130        $('input[id^=plugin_enable]').change(function(event) { 
    32             var data = {}; 
    3331            // モード(有効 or 無効) 
    34             data.mode = event.target.name; 
     32            var mode = event.target.name; 
    3533             
    36             if(data.mode === 'disable') { 
     34            if(mode === 'disable') { 
    3735                result = window.confirm('プラグインを無効しても宜しいですか?'); 
    38             } else if(data.mode === 'enable') { 
     36            } else if(mode === 'enable') { 
    3937                result = window.confirm('プラグインを有効にしても宜しいですか?'); 
    4038            } 
    41             if(result){ 
     39            if(result === true){ 
    4240                // プラグイン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); 
    5743            } 
    5844        }); 
Note: See TracChangeset for help on using the changeset viewer.