Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Fixed type attribute name
givanz14e19d540195
diff --git a/public/js/vvvebjs/elements-changes.js b/public/js/vvvebjs/elements-changes.jsindex f01ae84..ce0dcbb 100755--- a/public/js/vvvebjs/elements-changes.js+++ b/public/js/vvvebjs/elements-changes.js@@ -1,3 +1,24 @@+/**+ * Vvveb+ *+ * Copyright (C) 2021 Ziadin Givan+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ *+ * https://github.com/givanz/Vvveb+ */+function ucFirst(str) {if (!str) return str;@@ -33,7 +54,7 @@ function getElements() {for (let i = 0; i < nodes.length; i++) {let node = nodes[i];- let type = "v" + snakeCaseToCamelCase(node.dataset.vType);+ let type = "data-v-" + node.dataset.vType + "-";let name = "";let componentName = node.dataset.vComponent ?? node.dataset.vType;@@ -46,11 +67,11 @@ function getElements() {let content = "";let preview = "";- for ( attr in fieldNode.dataset) {+ for (attribute of fieldNode.attributes) {+ let attr = attribute.name;+ let value = attribute.value;- value = fieldNode.dataset[attr];if (attr.indexOf(type) == 0) {-attr = attr.replace(type, "").toLowerCase();let nodeType = "text";