rbrindley: branch rbrindley/astman_revamp r4672 - /team/rbrindley/astman_reva...

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Mar 26 15:05:34 CDT 2009


Author: rbrindley
Date: Thu Mar 26 15:05:33 2009
New Revision: 4672

URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4672
Log:

- no need for time_interval in pbx.trunks.rules.edit
- added delim shortcut
- cxt => params.cxt


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=4672&r1=4671&r2=4672
==============================================================================
--- team/rbrindley/astman_revamp/config/js/pbx2.js (original)
+++ team/rbrindley/astman_revamp/config/js/pbx2.js Thu Mar 26 15:05:33 2009
@@ -1616,7 +1616,6 @@
  * @param dest The destination.
  * @param cxt The context to edit.
  * @param pattern The extension pattern.
- * @param time_interval [optional] The time interval.
  * @param digits [optional] The 'x' in '${EXTEN:x}', for when dest === 'ByDID'.
  * @return boolean on success.
  */
@@ -1642,10 +1641,8 @@
 		return false;
 	}
 
-	/* just delete time_interval if its empty */
-	if (params.time_interval === '') {
-		delete params.time_interval;
-	}
+	/* easier to type/use */
+	var delim = top.session.delimiter;
 
 	/* kk, now lets form the rule */
 	var prior = ASTGUI.parseContextLine.getPriority(params.line);
@@ -1653,7 +1650,7 @@
 	rule += (params.dest === 'ByDID') ? 'Goto(default,${EXTEN:'+params.digits+'}'+delim+'1)' : params.dest;
 
 	var actions = new listOfSynActions('extensions.conf');
-	actions.new_action('update', cxt, 'exten', rule, line.afterChar('='));
+	actions.new_action('update', params.cxt, 'exten', rule, params.line.afterChar('='));
 
 	var resp = actions.callActions();
 	if (!resp.contains('Response: Success')) {




More information about the asterisk-gui-commits mailing list