From 0ccf898ac932f1595b931490a09e87ff56f5625e Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Fri, 26 Mar 2010 17:11:47 -0400 Subject: [PATCH] Shout: make sure we only observe the action form once --- shout/templates/dialplan/edit.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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', -- 2.11.0