From: Ben Klang Date: Fri, 26 Mar 2010 21:11:47 +0000 (-0400) Subject: Shout: make sure we only observe the action form once X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0ccf898ac932f1595b931490a09e87ff56f5625e;p=horde.git Shout: make sure we only observe the action form once --- diff --git a/shout/templates/dialplan/edit.inc b/shout/templates/dialplan/edit.inc index 787f95a6e..26822776d 100644 --- a/shout/templates/dialplan/edit.inc +++ b/shout/templates/dialplan/edit.inc @@ -231,8 +231,6 @@ function editAction(digit) cancel.value = ''; div.appendChild(cancel); - Event.observe($('editActionForm'), 'submit', function(event) {saveAction(event);}); - $('editAction').appendChild(div); } $('dialpadWorking').hide(); @@ -417,6 +415,7 @@ function saveMenu() $('editActionOverlay').hide(); $('editMenu').hide(); +Event.observe($('editActionForm'), 'submit', function(event) {saveAction(event);}); new Ajax.Request(ajax_url + 'getMenus', { method: 'get',