From a428ba4a760ae0dc44136f1329d348161e83ec87 Mon Sep 17 00:00:00 2001 From: renaldybrada Date: Thu, 12 Mar 2026 08:22:10 +0700 Subject: [PATCH] fixing add tindakan --- index.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 442a7a3..942876d 100644 --- a/index.php +++ b/index.php @@ -626,8 +626,18 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") { document.addEventListener("click", e => { if (e.target.classList.contains("addTindakan")) { + // let row = document.querySelector(".tindakanRow").cloneNode(true) + let row = document.createElement("div") + row.classList.add("row", "my-2", "tindakanRow") + row.innerHTML = ` +
+ +
- let row = document.querySelector(".tindakanRow").cloneNode(true) +
+ +
+ ` document.getElementById("tindakanContainer").appendChild(row) }