Commit a6edfca1689f86b26ea7a2b5659916119bafee06

Authored by Georg Hopp
1 parent a7c4ee11

erste version mit angehängten get attributen

... ... @@ -61,6 +61,18 @@ function personInUp (
61 61 this.un_fold (person[id], dataElement)
62 62 }
63 63
  64 + this.sendForm = function (formId)
  65 + {
  66 + var form = document.getElementById (formId);
  67 + var action = form.getAttribute ('action');
  68 +
  69 + form.setAttribute (
  70 + 'action', action + '?action=delete&personId=' + this.person.personId);
  71 + form.submit ();
  72 +
  73 + return false;
  74 + }
  75 +
64 76 this.de_activate = function (field)
65 77 {
66 78 var updBox = document.getElementById (this.updBox);
... ...
... ... @@ -4,7 +4,7 @@
4 4 delete_str = '<?=_('delete')?>';
5 5
6 6 pInUp = new personInUp (
7   - 'update', 'insert', 'submit', person, newPerson, arrRight, arrDown);
  7 + 'update', 'insert', 'send', person, newPerson, arrRight, arrDown);
8 8
9 9 function personInUpInit ()
10 10 {
... ... @@ -37,8 +37,8 @@
37 37 </td>
38 38 <td><?=_('insert')?></td>
39 39 <td align="right" width="100%">
40   - <input type="submit" id="submit"
41   - value="<?=_('submit')?>" disabled="true" />
  40 + <input type="button" id="send" value="<?=_('submit')?>"
  41 + onClick="return pInUp.sendForm ('pForm')" disabled="true" />
42 42 </td>
43 43 </tr></table>
44 44 </div>
... ...
Please register or login to post a comment