Changeset 22991 for branches/version-2_13-dev/data
- Timestamp:
- 2013/07/20 17:38:14 (11 years ago)
- Location:
- branches/version-2_13-dev/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/Smarty/templates/admin/ownersstore/plugin_hookpoint_list.tpl
r22978 r22991 34 34 var id = event.target.id; 35 35 36 if(value === ' f') {36 if(value === '0') { 37 37 result = window.confirm('無効にしても宜しいですか?'); 38 38 if(result === false) { 39 39 //$(event.target).attr("checked", "checked"); 40 event.target.value = ' t';40 event.target.value = '1'; 41 41 } 42 } else if(value === ' t') {42 } else if(value === '1') { 43 43 result = window.confirm('有効にしても宜しいですか?'); 44 44 if(result === false) { 45 45 //$(event.target).attr("checked", "checked"); 46 event.target.value = ' f';46 event.target.value = '0'; 47 47 } 48 48 } … … 90 90 </td> 91 91 <!--{/if}--> 92 <td<!--{if $val.use_flg == " f"}--> bgcolor="grey"<!--{/if}-->><!--{$val.priority}--></td>93 <td<!--{if $val.use_flg == " f"}--> bgcolor="grey"<!--{/if}-->><!--{$val.plugin_name}--></td>94 <td<!--{if $val.use_flg == " f"}--> bgcolor="grey"<!--{/if}-->>92 <td<!--{if $val.use_flg == "0"}--> bgcolor="grey"<!--{/if}-->><!--{$val.priority}--></td> 93 <td<!--{if $val.use_flg == "0"}--> bgcolor="grey"<!--{/if}-->><!--{$val.plugin_name}--></td> 94 <td<!--{if $val.use_flg == "0"}--> bgcolor="grey"<!--{/if}-->> 95 95 <!--{html_radios name="plugin_hookpoint_use[`$val.plugin_hookpoint_id`]" options=$arrUse selected=$val.use_flg id=$val.plugin_hookpoint_id}--> 96 96 </td> -
branches/version-2_13-dev/data/class/pages/admin/ownersstore/LC_Page_Admin_OwnersStore_PluginHookPointList.php
r22978 r22991 52 52 $this->tpl_subtitle = 'プラグインフックポイント管理'; 53 53 54 $this->arrUse[t] = 'ON'; 55 $this->arrUse[f] = 'OFF'; 54 $this->arrUse = array(); 55 $this->arrUse[1] = 'ON'; 56 $this->arrUse[0] = 'OFF'; 56 57 } 57 58 … … 76 77 // パラメーター管理クラス 77 78 $objFormParam = new SC_FormParam_Ex(); 78 $this->initParam($objFormParam , $mode);79 $this->initParam($objFormParam); 79 80 $objFormParam->setParam($_POST); 80 81 … … 88 89 $arrPluginHookpointUse = $objFormParam->getValue('plugin_hookpoint_use'); 89 90 $plugin_hookpoint_id = $objFormParam->getValue('plugin_hookpoint_id'); 90 $use_flg = ($arrPluginHookpointUse[$plugin_hookpoint_id] == 't') ? true :false;91 SC_Plugin_Util_Ex::setPluginHookPointChangeUse($plugin_hookpoint_id, $use_flg);91 $use_flg = ($arrPluginHookpointUse[$plugin_hookpoint_id] == 1) ? 1 : 0; 92 SC_Plugin_Util_Ex::setPluginHookPointChangeUse($plugin_hookpoint_id, $use_flg); 92 93 } 93 94 break; … … 99 100 // 競合チェック 100 101 $this->arrConflict = SC_Plugin_Util_Ex::checkConflictPlugin(); 101 foreach ($arrRet AS $key=>$val) { 102 $arrHookPoint = array(); 103 foreach ($arrRet AS $key => $val) { 102 104 $arrHookPoint[$val['hook_point']][$val['plugin_id']] = $val; 103 105 }
Note: See TracChangeset
for help on using the changeset viewer.