mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#19008960 Addon mobile enable/disable 변경을 애드온 관리페이지에서도 가능하게
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7695 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d3035546be
commit
dec17d68ff
3 changed files with 16 additions and 2 deletions
|
|
@ -7,6 +7,7 @@
|
|||
<!-- xml js filter를 이용하기 위한 데이터 전달용 form -->
|
||||
<form id="fo_addon" action="./" method="get">
|
||||
<input type="hidden" name="addon" value="" />
|
||||
<input type="hidden" name="type" value="" />
|
||||
</form>
|
||||
|
||||
<!-- 애드온의 목록 -->
|
||||
|
|
@ -18,7 +19,9 @@
|
|||
<th scope="col"><div>{$lang->author}</div></th>
|
||||
<th scope="col"><div>{$lang->date}</div></th>
|
||||
<th scope="col" class="wide"><div>{$lang->installed_path}</div></th>
|
||||
<th scope="col" colspan="2"><div> </div></th>
|
||||
<th scope="col"><div>{$lang->cmd_setup}</div></th>
|
||||
<th scope="col"><div>PC</div></th>
|
||||
<th scope="col"><div>Mobile</div></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
|
@ -47,6 +50,14 @@
|
|||
<a href="#" onclick="doToggleAddon('{$val->addon}');return false;" title="{htmlspecialchars($lang->notuse)}" class="buttonSet buttonDisable"><span>{$lang->notuse}</span></a>
|
||||
<!--@end-->
|
||||
</td>
|
||||
<td>
|
||||
<!--@if($val->mactivated)-->
|
||||
<a href="#" onclick="doToggleAddon('{$val->addon}','mobile');return false;" title="{htmlspecialchars($lang->use)}" class="buttonSet buttonActive"><span>{$lang->use}</span></a>
|
||||
<!--@else-->
|
||||
<a href="#" onclick="doToggleAddon('{$val->addon}','mobile');return false;" title="{htmlspecialchars($lang->notuse)}" class="buttonSet buttonDisable"><span>{$lang->notuse}</span></a>
|
||||
<!--@end-->
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<filter name="toggle_activate_addon" module="addon" act="procAddonAdminToggleActivate">
|
||||
<form>
|
||||
<node target="addon" required="true" />
|
||||
<node target="type" required="true" />
|
||||
</form>
|
||||
<response callback_func="reloadDocument">
|
||||
<tag name="error" />
|
||||
|
|
|
|||
|
|
@ -2,9 +2,11 @@
|
|||
* @brief 애드온의 활성/비활성 토글용 함수
|
||||
* fo_addon이라는 id를 가지는 form에 인자로 주어진 addon값을 세팅후 실행
|
||||
**/
|
||||
function doToggleAddon(addon) {
|
||||
function doToggleAddon(addon, type) {
|
||||
if(typeof(type) == "undefined") type = "pc";
|
||||
var fo_obj = jQuery('#fo_addon').get(0);
|
||||
fo_obj.addon.value = addon;
|
||||
fo_obj.type.value = type;
|
||||
procFilter(fo_obj, toggle_activate_addon);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue