From 1f1e275b8b4134f54c64efe773d7d4063a991f78 Mon Sep 17 00:00:00 2001 From: KRKeegan <-NOSPAM-kevin@krkeegan.com> Date: Tue, 26 Feb 2008 00:32:04 -0800 Subject: [PATCH] Initial delete section code --- plugins/admin/templates/settings.tmpl | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/plugins/admin/templates/settings.tmpl b/plugins/admin/templates/settings.tmpl index 1577320..64feea0 100644 --- a/plugins/admin/templates/settings.tmpl +++ b/plugins/admin/templates/settings.tmpl @@ -53,6 +53,18 @@ document.all.hideshow.divs[i].visibility = ''; } } } +function deleteSection(id){ +var answer = confirm("Are you sure you wish to delete the '" + select_section.section.options[id].text + "' Section?") +if (answer){ + switchDiv('set-delete', 'set-'); + select_section.section.options[id] = null; + // add stuff here to populate title with 'Delete_Me' + return true; +} +else{ + //Don't delete +} +} @@ -82,7 +94,7 @@ Configuration help

- +
Administration @@ -280,6 +292,12 @@ View Raw File + -- 2.11.4.GIT