From ee85cec9595c302186a040471a2b3e0f0b4cc9f9 Mon Sep 17 00:00:00 2001 From: Usbac Date: Sat, 7 Sep 2024 15:20:58 +0200 Subject: [PATCH] Rename multiselect attribute to data-multiselect --- app/views/admin/post.php | 2 +- public/assets/js/admin.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/post.php b/app/views/admin/post.php index a952bf2..6726636 100755 --- a/app/views/admin/post.php +++ b/app/views/admin/post.php @@ -85,7 +85,7 @@
- +
diff --git a/public/assets/js/admin.js b/public/assets/js/admin.js index 9ff31a3..b23e606 100755 --- a/public/assets/js/admin.js +++ b/public/assets/js/admin.js @@ -100,7 +100,7 @@ class Form { let value = el.value; if (type == 'checkbox') { - if (el.hasAttribute('multiselect')) { + if (el.hasAttribute('data-multiselect')) { key += '[]'; value = el.checked ? el.getAttribute('value') : undefined; } else {