From a6edfca1689f86b26ea7a2b5659916119bafee06 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Wed, 10 Oct 2007 21:58:54 +0000 Subject: [PATCH] =?UTF-8?q?erste=20version=20mit=20angeh=C3=A4ngten=20get?= =?UTF-8?q?=20attributen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/personAdmin/personInUp.js | 12 ++++++++++++ templates/personAdmin/personInUp.tpl.php | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/js/personAdmin/personInUp.js b/js/personAdmin/personInUp.js index 04104ec..03b19d2 100644 --- a/js/personAdmin/personInUp.js +++ b/js/personAdmin/personInUp.js @@ -61,6 +61,18 @@ function personInUp ( this.un_fold (person[id], dataElement) } + this.sendForm = function (formId) + { + var form = document.getElementById (formId); + var action = form.getAttribute ('action'); + + form.setAttribute ( + 'action', action + '?action=delete&personId=' + this.person.personId); + form.submit (); + + return false; + } + this.de_activate = function (field) { var updBox = document.getElementById (this.updBox); diff --git a/templates/personAdmin/personInUp.tpl.php b/templates/personAdmin/personInUp.tpl.php index 127c8fd..b72c941 100644 --- a/templates/personAdmin/personInUp.tpl.php +++ b/templates/personAdmin/personInUp.tpl.php @@ -4,7 +4,7 @@ delete_str = ''; pInUp = new personInUp ( - 'update', 'insert', 'submit', person, newPerson, arrRight, arrDown); + 'update', 'insert', 'send', person, newPerson, arrRight, arrDown); function personInUpInit () { @@ -37,8 +37,8 @@ - +