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 = '=_('delete')?>'; pInUp = new personInUp ( - 'update', 'insert', 'submit', person, newPerson, arrRight, arrDown); + 'update', 'insert', 'send', person, newPerson, arrRight, arrDown); function personInUpInit () { @@ -37,8 +37,8 @@