-
diff --git a/modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Contents/addWidgetModal.js b/modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Contents/addWidgetModal.js
index 8785add3b7..16a79d127e 100644
--- a/modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Contents/addWidgetModal.js
+++ b/modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Contents/addWidgetModal.js
@@ -12,16 +12,31 @@ $(function () {
volo.cmsKit.admin.contents.contentAdmin.getWidgets().then(function (data) {
var widgetTypes = data.items.filter(v => v.key === widgetType);
var firstWidgetType = widgetTypes[0];
- for (const property of firstWidgetType.properties) {
- let html = "
" +
- " " +
- " " +
- "
";
+ if (firstWidgetType.key == "Poll") {
+ $("#polls").removeAttr("hidden");
+ let widgetKey = $('#Widget').find('option:selected').val();
+ let html = " "
$("#PropertySideId").append(html);
}
+ else {
+ for (const property of firstWidgetType.properties) {
+ let html = "
" +
+ " " +
+ " " +
+ "
";
+ $("#PropertySideId").append(html);
+ }
+ }
});
});
+ $("#Widget").change(function () {
+ $("#PropertySideId").html('');
+ let widgetKey = $(this).find('option:selected').val();
+ let html = " "
+ $("#PropertySideId").append(html);
+ });
+
$("#save-changes").click(function () {
var keys = [];
var values = [];