rbrindley: branch 2.0 r4711 - /branches/2.0/config/js/pbx2.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Mon Apr 6 11:43:42 CDT 2009
Author: rbrindley
Date: Mon Apr 6 11:43:39 2009
New Revision: 4711
URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4711
Log:
- resolved a few issues with saving voice_menus
Modified:
branches/2.0/config/js/pbx2.js
Modified: branches/2.0/config/js/pbx2.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/pbx2.js?view=diff&rev=4711&r1=4710&r2=4711
==============================================================================
--- branches/2.0/config/js/pbx2.js (original)
+++ branches/2.0/config/js/pbx2.js Mon Apr 6 11:43:39 2009
@@ -2081,7 +2081,7 @@
actions.new_action('delcat', name, '', '');
actions.new_action('newcat', name, '', '');
- new_menu.includes.each( function(item) {
+ menu.includes.each( function(item) {
actions.new_action('append', name, 'include', item);
});
@@ -2093,9 +2093,11 @@
actions.new_action('append', ASTGUI.contexts.VoiceMenuExtensions, 'exten', menu.alias_exten);
}
+ var i=1;
menu.steps.each( function(step) {
if (!step.beginsWith('s,')) {
- step = 's,' + (i+1) + ',' + step;
+ step = 's,' + (i) + ',' + step;
+ i++;
}
actions.new_action('append', name, 'exten', step);
More information about the asterisk-gui-commits
mailing list