From 1ec672d1292248362bc659c5711121748902da49 Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 7 Feb 2024 10:08:34 +0800 Subject: [PATCH] add allow blank to file upload --- Pman.Dialog.Image.bjs | 3 ++- Pman.Dialog.Image.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Pman.Dialog.Image.bjs b/Pman.Dialog.Image.bjs index b7332694..7e770d82 100644 --- a/Pman.Dialog.Image.bjs +++ b/Pman.Dialog.Image.bjs @@ -1,4 +1,5 @@ { + "gen_extended" : false, "items" : [ { "$ uploadProgress" : [ @@ -101,6 +102,7 @@ }, { "$ xns" : "Roo.form", + "Boolean allowBlank" : false, "fieldLabel" : "Upload Image or File", "inputType" : "file", "name" : "imageUpload", @@ -383,7 +385,6 @@ "upload_max_filesize_value" : "eb5d45750c7ab13aa8e6bacc80315a30" }, "parent" : "", - "path" : "/home/leon/gitlive/web.MediaOutreach/Pman/Core/Pman.Dialog.Image.bjs", "permname" : "", "strings" : { "1243daf593fa297e07ab03bf06d925af" : "Searching...", diff --git a/Pman.Dialog.Image.js b/Pman.Dialog.Image.js index 44df2c4a..e6d58edb 100644 --- a/Pman.Dialog.Image.js +++ b/Pman.Dialog.Image.js @@ -319,6 +319,7 @@ Pman.Dialog.Image = { }, { xtype : 'TextField', + allowBlank : false, fieldLabel : _this._strings['ea72bacd2fdfa818907bb9559e6905a1'] /* Upload Image or File */, inputType : 'file', name : 'imageUpload', -- 2.39.2