From f038c0a4cecc7a7a56b6d175c3ec42c1f80a4ac7 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Mon, 13 Feb 2012 09:00:09 -0500 Subject: [PATCH] Implemented: FS#2024 - Sanity check zones with named-checkzone --- interface/web/js/scrigo.js.php | 35 +++++++---------------------------- 1 files changed, 7 insertions(+), 28 deletions(-) diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php index 5534f3e..f8da538 100644 --- a/interface/web/js/scrigo.js.php +++ b/interface/web/js/scrigo.js.php @@ -101,7 +101,7 @@ } -function submitForm(formname,target) { +function submitForm(formname,target) { var submitFormObj = jQuery.ajax({ type: "POST", url: target, data: jQuery('#'+formname).serialize(), @@ -264,6 +264,12 @@ } function del_record(link,confirmation) { + if(window.confirm(confirmation)) { + loadContent(link); + } +} + +function confirm_action(link,confirmation) { if(window.confirm(confirmation)) { loadContent(link); } @@ -491,30 +497,3 @@ } return rv; } - -function loadwebip(elementid,pagename) { - var pageContentObject2 = jQuery.ajax({ type: "GET", - url: pagename, - dataType: "html", - success: function(data, textStatus, jqXHR) { - var teste = jqXHR.responseText; - var elemente = teste.split('#'); - el=document.getElementById(elementid); - el.innerHTML=''; - for (var i = 0; i < elemente.length; ++i){ - - var foo2 = document.createElement("option"); - foo2.appendChild(document.createTextNode(elemente[i])); - foo2.value=elemente[i]; - el.appendChild(foo2); - } - }, - error: function() { - reportError('Ajax Request was not successful. 119'); - }, - }); - var ruby = document.getElementById('ruby'); - ruby.style.display = 'none'; -} - - -- Gitblit v1.9.1