mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
issue 46 validator apply editor module
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8515 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
77722f35b9
commit
4c9ce4db07
4 changed files with 18 additions and 3 deletions
|
|
@ -21,7 +21,7 @@
|
|||
<action name="procEditorAdminEnableComponent" type="controller" standalone="true" />
|
||||
<action name="procEditorAdminDisableComponent" type="controller" standalone="true" />
|
||||
<action name="procEditorAdminMoveListOrder" type="controller" standalone="true" />
|
||||
<action name="procEditorAdminSetupComponent" type="controller" standalone="true" />
|
||||
<action name="procEditorAdminSetupComponent" type="controller" standalone="true" ruleset="setupComponent" />
|
||||
|
||||
<action name="procEditorLoadSavedDocument" type="controller" standalone="true" />
|
||||
</actions>
|
||||
|
|
|
|||
|
|
@ -134,6 +134,13 @@
|
|||
$oEditorController->removeCache($args->site_srl);
|
||||
|
||||
$this->setMessage('success_updated');
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
||||
global $lang;
|
||||
alertScript($lang->success_updated);
|
||||
reload(true);
|
||||
closePopupScript();
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
7
modules/editor/ruleset/setupComponent.xml
Normal file
7
modules/editor/ruleset/setupComponent.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ruleset version="1.5.0">
|
||||
<customrules>
|
||||
</customrules>
|
||||
<fields>
|
||||
</fields>
|
||||
</ruleset>
|
||||
|
|
@ -1,13 +1,14 @@
|
|||
<!--%import("css/editor.css")-->
|
||||
<!--%import("css/editor_admin.css")-->
|
||||
<!--%import("js/editor_admin.js")-->
|
||||
<!--%import("filter/setup_component.xml")-->
|
||||
|
||||
<div id="popHeader" class="wide">
|
||||
<h3 class="xeAdmin">{$lang->cmd_setup}</h3>
|
||||
</div>
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, setup_component);">
|
||||
<p class="xe_validator_error">{$XE_VALIDATOR_ERROR}</p>
|
||||
<form ruleset="setupComponent" action="./" method="post">
|
||||
<input type="hidden" name="act" value="procEditorAdminSetupComponent" />
|
||||
<input type="hidden" name="component_name" value="{$component_name}" />
|
||||
|
||||
<div id="popBody">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue