X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/ac77e020edc6dff3d0ce497324e347f7a8d54a34..08a12c7d87614be8332e8bb81532f0e5a2ce36db:/skins/content/folder_factories.pt?ds=sidebyside diff --git a/skins/content/folder_factories.pt b/skins/content/folder_factories.pt index 5a76798..c5ec309 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 (submitButton) + self.submitButton = submitButton; }; var id2type = /(^[^\.]+)\.id:record$/; function trackFocus(evt) {