pari: trunk r47 - /trunk/config/scripts/astman.js
asterisk-gui-commits at lists.digium.internal
asterisk-gui-commits at lists.digium.internal
Tue Oct 3 16:23:18 CDT 2006
Author: pari
Date: Tue Oct 3 16:23:18 2006
New Revision: 47
URL: http://svn.digium.com/view/asterisk-gui?rev=47&view=rev
Log:
Fix: Delete of 'New entry' is asking double confirmation
Modified:
trunk/config/scripts/astman.js
Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?rev=47&r1=46&r2=47&view=diff
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Tue Oct 3 16:23:18 2006
@@ -403,6 +403,10 @@
var updatebox = 0;
var subcat, subname, suborig;
if (!noconfirm) {
+ if( box.options[box.selectedIndex].text == "New Entry" && box.widgets['cancel'] ){
+ box.widgets['cancel'].click();
+ return true;
+ }
if (!confirm("Delete entry?")) {
return false;
}
More information about the asterisk-gui-commits
mailing list