rbrindley: branch 2.0 r4678 - /branches/2.0/config/incoming.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Mar 30 12:39:23 CDT 2009


Author: rbrindley
Date: Mon Mar 30 12:39:20 2009
New Revision: 4678

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

- merged latest incoming.html from astman_revamp


Modified:
    branches/2.0/config/incoming.html

Modified: branches/2.0/config/incoming.html
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/incoming.html?view=diff&rev=4678&r1=4677&r2=4678
==============================================================================
--- branches/2.0/config/incoming.html (original)
+++ branches/2.0/config/incoming.html Mon Mar 30 12:39:20 2009
@@ -117,7 +117,7 @@
 				continue;
 			}
 
-			itrl_tf.append($('<option>').html(ti).val(list[ti]));
+			itrl_tf.append($('<option>').html(ti).val(ti));
 		};
 		itrl_tf.append($('<option>').html('None (no Time Intervals matched)').val(''));
 		delete itrl_tf;
@@ -126,18 +126,14 @@
 		/* Populate Destinations <select> */
 		var dest = $('#edit_itrl_dest');
 		var list = parent.miscFunctions.getAllDestinations();
-		for (var d in list) {
-			if (!list.hasOwnProperty(d)) {
-				continue;
-			}
-
-			dest.append($('<option>').html(d).val(list[d]));
+		for (var d=0; d<list.length; d++) {
+			dest.append($('<option>').html(list[d].optionText).val(list[d].optionValue));
 		}
 		dest.append($('<option>').html('Local Extension by DID').val('ByDID'));
 
 		/* now lets add some events!! */
 		dest.change(function() {
-			if (this.val() === 'ByDID') {
+			if ($(this).val() === 'ByDID') {
 				$('.localext_byDid').show();
 			} else {
 				$('.localext_byDid').hide();




More information about the asterisk-gui-commits mailing list