From e4aa18630a8841159f7bc901b5322a1fb87c6199 Mon Sep 17 00:00:00 2001 From: Zarak Khan Date: Fri, 29 Dec 2023 17:11:51 +0500 Subject: [PATCH] commit message --- .../websiteFunctions/websiteFunctionsV2.js | 31 +++++++------- .../websiteFunctions/WPsitesListV2.html | 4 +- .../websiteFunctions/createWebsiteV2.html | 41 +++++++++++++++++-- 3 files changed, 56 insertions(+), 20 deletions(-) diff --git a/websiteFunctions/static/websiteFunctions/websiteFunctionsV2.js b/websiteFunctions/static/websiteFunctions/websiteFunctionsV2.js index f2c2034f8..8140438ee 100644 --- a/websiteFunctions/static/websiteFunctions/websiteFunctionsV2.js +++ b/websiteFunctions/static/websiteFunctions/websiteFunctionsV2.js @@ -3770,25 +3770,26 @@ newapp.controller('WPAddNewPluginV2', function ($scope, $http, $timeout, $window } }); -function openModal() { - const modal = document.getElementById("myModal"); - modal.classList.remove("hidden"); - } - - function closeModal() { - const modal = document.getElementById("myModal"); - modal.classList.add("hidden"); - } - document.addEventListener("DOMContentLoaded", function () { - const openModalButton = document.getElementById("openModalButton"); - const closeModalButton = document.getElementById("closeModalButton"); +function DeleteWPNowV2(url) { + const modal = document.getElementById("deleteWpModel"); + $('#deleteWpModel').modal('show'); + // modal.classList.remove("hidden"); +} - openModalButton.addEventListener("click", openModal); - closeModalButton.addEventListener("click", closeModal); - }); +function closeModal() { + const modal = document.getElementById("myModal"); + $('#myModal').modal('hide'); + // modal.classList.add("hidden"); +} +document.addEventListener("DOMContentLoaded", function () { + const openModalButton = document.getElementById("openModalButton"); + const closeModalButton = document.getElementById("closeModalButton"); + openModalButton.addEventListener("click", openModal); + closeModalButton.addEventListener("click", closeModal); +}); // function openModalDelete() { diff --git a/websiteFunctions/templates/websiteFunctions/WPsitesListV2.html b/websiteFunctions/templates/websiteFunctions/WPsitesListV2.html index 40283360f..7335ce660 100644 --- a/websiteFunctions/templates/websiteFunctions/WPsitesListV2.html +++ b/websiteFunctions/templates/websiteFunctions/WPsitesListV2.html @@ -71,12 +71,12 @@
-