rbrindley: branch rbrindley/astman_revamp r4682 - /team/rbrindley/astman_reva...
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Apr 1 08:28:57 CDT 2009
Author: rbrindley
Date: Wed Apr 1 08:28:53 2009
New Revision: 4682
URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4682
Log:
- add the prefix if the name doesn't already have it
Modified:
team/rbrindley/astman_revamp/config/js/pbx2.js
Modified: team/rbrindley/astman_revamp/config/js/pbx2.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/js/pbx2.js?view=diff&rev=4682&r1=4681&r2=4682
==============================================================================
--- team/rbrindley/astman_revamp/config/js/pbx2.js (original)
+++ team/rbrindley/astman_revamp/config/js/pbx2.js Wed Apr 1 08:28:53 2009
@@ -275,6 +275,10 @@
} else if (!callplan.includes) {
top.log.warn('pbx.call_plans.add: callplan.includes is empty.');
return false;
+ }
+
+ if (!name.beginsWith(ASTGUI.contexts.CallingPlanPrefix)) {
+ name = ASTGUI.contexts.CallingPlanPrefix + name;
}
var actions = new listOfSynActions('extensions.conf');
More information about the asterisk-gui-commits
mailing list