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:
ovclas 2011-06-21 09:12:06 +00:00
parent 77722f35b9
commit 4c9ce4db07
4 changed files with 18 additions and 3 deletions

View file

@ -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>

View file

@ -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;
}
}
/**

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<ruleset version="1.5.0">
<customrules>
</customrules>
<fields>
</fields>
</ruleset>

View file

@ -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">