Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
e1e88b1f
Commit
e1e88b1f
authored
Mar 30, 2009
by
Richard Mansfield
Browse files
Pieforms: control replacement of form content after ajax request without reloadFormOnReply property
parent
692f9b8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/pieforms/pieform.php
View file @
e1e88b1f
...
...
@@ -692,7 +692,6 @@ class Pieform {/*{{{*/
'globalJsErrorCallback'
=>
$this
->
data
[
'globaljserrorcallback'
],
'postSubmitCallback'
=>
$this
->
data
[
'postsubmitcallback'
],
'newIframeOnSubmit'
=>
$this
->
data
[
'newiframeonsubmit'
],
'reloadFormOnReply'
=>
$this
->
data
[
'reloadformonreply'
],
));
$result
.
=
"<script type=
\"
text/javascript
\"
>new Pieform(
$data
);</script>
\n
"
;
}
...
...
@@ -1344,11 +1343,6 @@ EOF;
// submitted.
'newiframeonsubmit'
=>
false
,
// Whether the contents of the form should be reloaded on the page when
// a reply is received from the server. If false, error messages will
// not automatically be displayed inside the form.
'reloadformonreply'
=>
true
,
// The URL where pieforms.js and other related pieforms javascript
// files can be accessed. Best specified as an absolute path in
// pieform_configure()
...
...
htdocs/lib/pieforms/static/core/pieforms.js
View file @
e1e88b1f
...
...
@@ -170,7 +170,7 @@ function Pieform(data) {//{{{
PieformManager
.
signal
(
'
onreply
'
,
self
.
data
.
name
);
if
(
self
.
data
.
reloadFormOnReply
)
{
if
(
typeof
(
data
.
replaceHTML
)
==
'
string
'
)
{
var
tmp
=
DIV
();
tmp
.
innerHTML
=
data
.
replaceHTML
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment