espiceland: branch 2.0 r5142 - /branches/2.0/config/js/incoming.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Fri Jan 14 15:37:58 CST 2011


Author: espiceland
Date: Fri Jan 14 15:37:56 2011
New Revision: 5142

URL: http://svnview.digium.com/svn/asterisk-gui?view=rev&rev=5142
Log:
Fix bug where value for local destination by DID is not gotten correctly, so the value is always empty.

Modified:
    branches/2.0/config/js/incoming.js

Modified: branches/2.0/config/js/incoming.js
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/js/incoming.js?view=diff&rev=5142&r1=5141&r2=5142
==============================================================================
--- branches/2.0/config/js/incoming.js (original)
+++ branches/2.0/config/js/incoming.js Fri Jan 14 15:37:56 2011
@@ -356,7 +356,7 @@
 		var this_tiName = ASTGUI.getFieldValue('edit_itrl_tf') ;
 		var TMP_NEW_PATTERN = ASTGUI.getFieldValue('edit_itrl_pattern');
 		var dest = $('#edit_itrl_dest').val();
-		var local_dest = $('#edit_itrl_LocalDest_Pattern option:selected').text();
+		var local_dest = ASTGUI.getFieldValue('edit_itrl_LocalDest_Pattern');
 		var time_int_name = $('#edit_itrl_tf option:selected').text();
 		time_int_name = (time_int_name.contains('no Time Intervals')) ? '' : time_int_name;
 
@@ -366,7 +366,6 @@
 		}
 
 		if( isNewIR == true ){ // create new Incoming Rule
-			top.log.debug("create new Incoming Rule");
 			parent.ASTGUI.dialog.waitWhile('Creating Incoming Rule ...');
 
 			if (parent.pbx.trunks.rules.add({trunk: this_trunk, name: time_int_name, time_interval: time_int_name, dest: dest, pattern: TMP_NEW_PATTERN, digits: local_dest})) {




More information about the asterisk-gui-commits mailing list