rbrindley: branch 2.0 r4815 - /branches/2.0/config/js/features2.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Jun 1 15:15:46 CDT 2009


Author: rbrindley
Date: Mon Jun  1 15:15:43 2009
New Revision: 4815

URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4815
Log:

- fixed an issue in Call Features where Application Maps were failing to
  display properly after a new map was created


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

Modified: branches/2.0/config/js/features2.js
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/js/features2.js?view=diff&rev=4815&r1=4814&r2=4815
==============================================================================
--- branches/2.0/config/js/features2.js (original)
+++ branches/2.0/config/js/features2.js Mon Jun  1 15:15:43 2009
@@ -20,6 +20,7 @@
 var feat_conf;
 var gui_conf;
 var amap_table = $('#application_map_list tbody');
+var amap_enabled = [];
 var amap_orig_name;
 var vals = {};
 var dial_options;
@@ -255,7 +256,7 @@
 	}
 
 	if (amap_table.find('tr:not(.template)').length === 0) {
-		var row = $('<tr>').attr('colspan', '7').html('No Application Maps Defined.');
+		var row = $('<tr>').attr('colspan', '7').addClass('noapps').html('No Application Maps Defined.');
 		amap_table.append(row);
 	}
 
@@ -272,7 +273,7 @@
 		var amap_fields = ['', 'self', '', ''];
 	}
 
-	if (!amap_table.find('tr').length || (amap_table.find('tr').length && amap_table.find('tr:first').hasClass('noapps'))) {
+	if (!amap_table.find('tr').length || (amap_table.find('tr').length && amap_table.find('tr.noapps'))) {
 		amap_table.find('tr:not(.template)').remove();
 	}
 




More information about the asterisk-gui-commits mailing list