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

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Mar 12 09:58:16 CDT 2009


Author: rbrindley
Date: Thu Mar 12 09:58:13 2009
New Revision: 4620

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

- fixed minor typos


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=4620&r1=4619&r2=4620
==============================================================================
--- team/rbrindley/astman_revamp/config/js/pbx2.js (original)
+++ team/rbrindley/astman_revamp/config/js/pbx2.js Thu Mar 12 09:58:13 2009
@@ -95,7 +95,7 @@
 	}
 
 	var ext_conf = new listOfSynActions('extensions.conf');
-	ext_conf.new_action('update', name, 'exten', edition.lChop('exten='), current.lChop('exten=');
+	ext_conf.new_action('update', name, 'exten', edition.lChop('exten='), current.lChop('exten='));
 
 	var resp = ext_conf.callActions();
 	if (!resp.contains('Response: Success')) {
@@ -203,7 +203,7 @@
 		var options = line.afterChar('=');
 		var params = options.betweenXY('|',')');
 		
-		if (params.contains('a') && params.contains('A')) [
+		if (params.contains('a') && params.contains('A')) {
 			exten = ASTGUI.parseContextLine.getArgs(line)[0];
 		}
 
@@ -307,7 +307,7 @@
 
 	cxt.each(function(line) {
 		if (!line.beginsWith('exten=')) {
-			continue;
+			return;
 		}
 
 		var exten = ASTGUI.parseContextLine.getExten(line);
@@ -346,7 +346,7 @@
 	if (!name) {
 		top.log.error('pbx.time_intervals.add: name is empty.');
 		return false;
-	} else if (typeof interval !== 'undefined') {
+	} else if (typeof interval === 'undefined') {
 		top.log.error('pbx.time_intervals.add: interval is undefined.');
 		return false;
 	}
@@ -370,7 +370,7 @@
 	if (!this.validate.time(interval.time)) {
 		top.log.error('pbx.time_intervals.add: invalid time.');
 		return false;
-	} else if (!this.validate.weekdays(interval.weekdays)) {
+	} else if (!this.validate.weekday(interval.weekdays)) {
 		top.log.error('pbx.time_intervals.add: invalid days of the week.');
 		return false;
 	} else if (!this.validate.day(interval.days)) {
@@ -388,7 +388,7 @@
 		+ interval.months.toString();
 
 	/* update extensions.conf */
-	var ext_conf = new listOfActions('extensions.conf');
+	var ext_conf = new listOfSynActions('extensions.conf');
 	ext_conf.new_action('update', 'globals', ASTGUI.contexts.TimeIntervalPrefix + name, value);
 
 	var resp = ext_conf.callActions();
@@ -436,7 +436,7 @@
 	if (!this.validate.time(interval.time)) {
 		top.log.error('pbx.time_intervals.add: invalid time.');
 		return false;
-	} else if (!this.validate.weekdays(interval.weekdays)) {
+	} else if (!this.validate.weekday(interval.weekdays)) {
 		top.log.error('pbx.time_intervals.add: invalid days of the week.');
 		return false;
 	} else if (!this.validate.day(interval.days)) {
@@ -454,7 +454,7 @@
 		+ interval.months.toString();
 
 	/* update extensions.conf */
-	var actions = new listOfActions('extensions.conf');
+	var actions = new listOfSynActions('extensions.conf');
 	actions.new_action('delete', 'globals', ASTGUI.contexts.TimeIntervalPrefix + oldname, '', '');
 
 	var exten_conf = config2json({filename:'extensions.conf', usf:0});
@@ -620,7 +620,7 @@
  * Trunks object.
  */
 pbx.trunks = {
-	trunk_types = ['analog', 'bri', 'iax', 'pri', 'provider', 'sip']
+	trunk_types: ['analog', 'bri', 'iax', 'pri', 'provider', 'sip']
 };
 
 /**
@@ -822,7 +822,7 @@
  * @param trunk.
  * @return provider type.
  */
-pbx.trunks.getProviderType = function(trunk) [
+pbx.trunks.getProviderType = function(trunk) {
 	if (!sessionData.pbxinfo.trunks.providers.hasOwnProperty(trunk)) {
 		top.log.error('pbx.trunks.getProviderType: ' + trunk + ' is not a provider.');
 		return '';




More information about the asterisk-gui-commits mailing list