From 00aea67a314edcbf90382d5930e85c214cf2ee72 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 10 Mar 2020 17:52:52 +0800 Subject: [PATCH] fix for old versions of chrome --- docs/src/Roo_form_BasicForm.js.html | 22 ++++++++++++++-------- roojs-all.js | 4 ++-- roojs-debug.js | 22 ++++++++++++++-------- roojs-ui-debug.js | 22 ++++++++++++++-------- roojs-ui.js | 4 ++-- 5 files changed, 46 insertions(+), 28 deletions(-) diff --git a/docs/src/Roo_form_BasicForm.js.html b/docs/src/Roo_form_BasicForm.js.html index fb6e443da7..d33d2110c6 100644 --- a/docs/src/Roo_form_BasicForm.js.html +++ b/docs/src/Roo_form_BasicForm.js.html @@ -540,14 +540,20 @@ clientValidation Boolean Applies to submit only. Pass true to call fo // use formdata if (typeof(FormData) != 'undefined' && asString !== true) { - var fd = (new FormData(this.el.dom)).entries(); - var ret = {}; - var ent = fd.next(); - while (!ent.done) { - ret[ent.value[0]] = ent.value[1]; // not sure how this will handle duplicates.. - ent = fd.next(); - }; - return ret; + // this relies on a 'recent' version of chrome apparently... + try { + var fd = (new FormData(this.el.dom)).entries(); + var ret = {}; + var ent = fd.next(); + while (!ent.done) { + ret[ent.value[0]] = ent.value[1]; // not sure how this will handle duplicates.. + ent = fd.next(); + }; + return ret; + } catch(e) { + + } + } diff --git a/roojs-all.js b/roojs-all.js index 004a9c5a26..7390bb00c1 100644 --- a/roojs-all.js +++ b/roojs-all.js @@ -1961,8 +1961,8 @@ Roo.MessageBox.confirm("Change requires confirmation",A.result.errorMsg,function i