rbrindley: branch rbrindley/astman_revamp r4668 - /team/rbrindley/astman_reva...
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Thu Mar 26 13:35:28 CDT 2009
Author: rbrindley
Date: Thu Mar 26 13:35:27 2009
New Revision: 4668
URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4668
Log:
- oooh! destinations are objects with optionText and optionValue
- $(this) not this
Modified:
team/rbrindley/astman_revamp/config/incoming.html
Modified: team/rbrindley/astman_revamp/config/incoming.html
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/incoming.html?view=diff&rev=4668&r1=4667&r2=4668
==============================================================================
--- team/rbrindley/astman_revamp/config/incoming.html (original)
+++ team/rbrindley/astman_revamp/config/incoming.html Thu Mar 26 13:35:27 2009
@@ -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