From: Benoît Pin Date: Thu, 12 Dec 2013 10:13:28 +0000 (+0100) Subject: fix bug (trouvé par PJ) : le bouton submit sur lequel l’utilisateur avait cliqué... X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/2039a4daf31855d9dd052b5a354ef2c0214921ca?ds=sidebyside fix bug (trouvé par PJ) : le bouton submit sur lequel l’utilisateur avait cliqué était perdu. --- diff --git a/skins/content/folder_factories.pt b/skins/content/folder_factories.pt index 5a76798..282e5de 100644 --- a/skins/content/folder_factories.pt +++ b/skins/content/folder_factories.pt @@ -46,7 +46,8 @@ var fm = new FormManager(fform); var submitButton; fm.onBeforeSubmit = function(self, evt) { - self.submitButton = submitButton; + if (!fm.submitButton && submitButton) + self.submitButton = submitButton; }; var id2type = /(^[^\.]+)\.id:record$/; function trackFocus(evt) {