* code for task#890.
* cancel the task temporary.
This commit is contained in:
@@ -3,7 +3,7 @@ if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::
|
||||
include 'header.lite.html.php';
|
||||
include 'colorbox.html.php';
|
||||
include 'chosen.html.php';
|
||||
include 'validation.html.php';
|
||||
//include 'validation.html.php';
|
||||
?>
|
||||
<?php if(empty($_GET['onlybody']) or $_GET['onlybody'] != 'yes'):?>
|
||||
<div id='header'>
|
||||
|
||||
@@ -7,6 +7,7 @@ js::import($jsRoot . 'jquery/validation/min.js');
|
||||
requiredFields = "<?php echo isset($this->config->{$this->app->getModuleName()}->{$this->app->getMethodName()}->requiredFields) ? $this->config->{$this->app->getModuleName()}->{$this->app->getMethodName()}->requiredFields : '';?>";
|
||||
$(document).ready(function()
|
||||
{
|
||||
if(typeOf requiredFields == 'unDefined') return;
|
||||
for(i in requiredFields)
|
||||
{
|
||||
$('form #' + requiredFields[i]).addClass('required');
|
||||
|
||||
Reference in New Issue
Block a user