projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
35e1ece
)
+ scope isolé.
author
Benoît Pin
<benoit.pin@gmail.com>
Wed, 24 Jul 2013 02:00:39 +0000
(
04:00
+0200)
committer
Benoît Pin
<benoit.pin@gmail.com>
Wed, 24 Jul 2013 02:00:39 +0000
(
04:00
+0200)
skins/ajax_scripts/ajax_form_manager.js
patch
|
blob
|
history
diff --git
a/skins/ajax_scripts/ajax_form_manager.js
b/skins/ajax_scripts/ajax_form_manager.js
index
d942234
..
d91c440
100644
(file)
--- a/
skins/ajax_scripts/ajax_form_manager.js
+++ b/
skins/ajax_scripts/ajax_form_manager.js
@@
-4,8
+4,11
@@
//
//
//
//
+var FormManager;
-function FormManager(form, responseTextDest, lazy) {
+(function(){
+
+FormManager = function(form, responseTextDest, lazy) {
if (form.elements.namedItem("noAjax")) {return;}
this.form = form;
if (form.elements.namedItem("noAjax")) {return;}
this.form = form;
@@
-39,7
+42,7
@@
function FormManager(form, responseTextDest, lazy) {
this.onResponseLoad = function(req){ thisManager.restoreField(req); };
this.lazyListeners = [];
}
this.onResponseLoad = function(req){ thisManager.restoreField(req); };
this.lazyListeners = [];
}
-}
+}
;
FormManager.prototype.submit = function(evt) {
var form = this.form;
FormManager.prototype.submit = function(evt) {
var form = this.form;
@@
-447,5
+450,4
@@
function initForms(baseElement, lazy) {
}
}
}
}
-
-//registerStartupFunction(initForms);
\ No newline at end of file
+}());