JSON javascript code in Aform.php what does it do?
I found the following code in XLite\class\view\form\Aform.php:
/**
* javascript: this value will be returned on form submit
* NOTE - this function designed for AJAX easy switch on/off
*
* @return string
*/
protected function getOnSubmitResult()
{
return 'true';
}
/**
* javascript: default action performed on form submit
*
* @return string
*/
protected function getJSOnSubmitCode()
{
return 'return ' . $this->getOnSubmitResult() . ';';
}
What I cant seem to find is the function getJSOnSubmitCode, I would like to know what this code does and where I can find it.
Obviously it relates to the xcart forms and it does something once you submit a form. I am about to create a custom form module for our site, but before I do I would like to know what this code does and where I can find it, so I can determine if I should leave it in my custom form module.
Thanks in advance
__________________
x-cart business 5.2.14
|