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

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Mar 12 10:01:19 CDT 2009


Author: rbrindley
Date: Thu Mar 12 10:01:16 2009
New Revision: 4621

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

- fixed a comma/pipe issue for loading timeintervals


Modified:
    team/rbrindley/astman_revamp/config/js/astman.js

Modified: team/rbrindley/astman_revamp/config/js/astman.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/js/astman.js?view=diff&rev=4621&r1=4620&r2=4621
==============================================================================
--- team/rbrindley/astman_revamp/config/js/astman.js (original)
+++ team/rbrindley/astman_revamp/config/js/astman.js Thu Mar 12 10:01:16 2009
@@ -1561,7 +1561,7 @@
 			//ASTGUI.miscFunctions.GotoIftime_in_humanReadable( '08:00-17:00,mon-fri,*,*' ) ; // returns a human readable form as ' 8 AM to 5 PM on Monday through Friday'
 			var WEEKDAYS = {mon: 'Monday', tue: 'Tuesdays', wed: 'Wednesday', thu: 'Thursday', fri: 'Friday', sat:'Saturday', sun:'Sunday'};
 
-			var PIECES = gotoiftime_str.split(',') ;
+			var PIECES = gotoiftime_str.contains(',') ? gotoiftime_str.split(',') : gotoiftime_str.split('|') ;
 			var toreturn = [];
 			if( PIECES[0] != '*' ){
 				toreturn.push( ASTGUI.miscFunctions.asteriskTime_to_AMPM(PIECES[0].split('-')[0]) + ' to ' +  ASTGUI.miscFunctions.asteriskTime_to_AMPM(PIECES[0].split('-')[1]) );




More information about the asterisk-gui-commits mailing list