|
@@ -595,11 +595,31 @@ HTML;
|
|
|
<<<JS
|
|
|
$('#{$this->getElementId()}').form({
|
|
|
validate: true,
|
|
|
+ success: function (data) {
|
|
|
+ {$this->buildSuccessScript()}
|
|
|
+ },
|
|
|
+ error: function (response) {
|
|
|
+ {$this->buildErrorScript()}
|
|
|
+ }
|
|
|
});
|
|
|
JS
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @return string|void
|
|
|
+ */
|
|
|
+ protected function buildSuccessScript()
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return string|void
|
|
|
+ */
|
|
|
+ protected function buildErrorScript()
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @param array $input
|
|
|
*
|