Commit 05746ec4 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Connect js functions to filebrowser buttons when returning after an error

parent 164202e3
......@@ -83,6 +83,7 @@ $form = pieform(array(
'jsform' => true,
'newiframeonsubmit' => true,
'jssuccesscallback' => 'editpost_success',
'jserrorcallback' => 'editpost_error',
'plugintype' => 'artefact',
'pluginname' => 'blog',
'configdirs' => array(get_config('libroot') . 'form/', get_config('docroot') . 'artefact/file/form/'),
......@@ -308,6 +309,10 @@ function editpost_success(form, data) {
editpost_filebrowser.success(form, data);
};
function editpost_error(form, data) {
editpost_filebrowser.init();
};
EOF;
$smarty = smarty(array(), array(), array(), array(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment