Browse Source
Merge pull request #24117 from abpframework/EngincanV/cms-content-widget-validation
CMS Kit: Check form validity for addWidgetModal
pull/24128/head
oykuermann
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
1 deletions
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Contents/addWidgetModal.js
|
|
@ -25,7 +25,11 @@ $(function () { |
|
|
|
|
|
|
|
|
$(".save-changes").click(function () { |
|
|
$(".save-changes").click(function () { |
|
|
|
|
|
|
|
|
let properties = activeForm.serializeFormToObject(); |
|
|
if (activeForm && activeForm.length > 0 && !activeForm.valid()) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let properties = activeForm ? activeForm.serializeFormToObject() : {}; |
|
|
|
|
|
|
|
|
let widgetText = "[Widget Type=\"" + widgetType + "\" "; |
|
|
let widgetText = "[Widget Type=\"" + widgetType + "\" "; |
|
|
|
|
|
|
|
|
|