espiceland: branch 2.0 r5077 - in /branches/2.0/config: js/index.js welcome.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Sep 1 14:36:43 CDT 2010


Author: espiceland
Date: Wed Sep  1 14:36:38 2010
New Revision: 5077

URL: http://svnview.digium.com/svn/asterisk-gui?view=rev&rev=5077
Log:
Fixed a bug with filter in system status where some extensions that should be shown are hidden. Fixes ASTGUI-244.

Modified:
    branches/2.0/config/js/index.js
    branches/2.0/config/welcome.html

Modified: branches/2.0/config/js/index.js
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/js/index.js?view=diff&rev=5077&r1=5076&r2=5077
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Wed Sep  1 14:36:38 2010
@@ -71,7 +71,7 @@
 						onLogInFunctions.makePings.stop();
 						top.window.location.replace(top.window.location.href); return true; 
 					}else{
-						top.log.ajax('PING Request: Success');
+						// top.log.ajax('PING Request: Success');
 					}
 				};
 				$.ajax({

Modified: branches/2.0/config/welcome.html
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/welcome.html?view=diff&rev=5077&r1=5076&r2=5077
==============================================================================
--- branches/2.0/config/welcome.html (original)
+++ branches/2.0/config/welcome.html Wed Sep  1 14:36:38 2010
@@ -514,15 +514,20 @@
 				var has_class = $(this).toggleClass('active').hasClass('active');
 				extension_loads[title] = has_class?true:false;
 
-				//traverse sections and show or hide appropriately
+				//traverse sections and hide everything. 
+				$(this).siblings('[title!=all]').andSelf().each( function() {
+					var title = $(this).attr('title');
+					$('#extensions_list .'+title).hide();
+					top.log.debug( 'hiding ' + title);
+				});
+				//traverse sections and show only what we want. 
 				$(this).siblings('[title!=all]').andSelf().each( function() {
 					var show = $(this).hasClass('active');
 					var title = $(this).attr('title');
 					
 					if (show) {
 						$('#extensions_list .'+title).show();
-					} else {
-						$('#extensions_list .'+title).hide();
+						top.log.debug( 'showing ' + title);
 					}
 				});
 




More information about the asterisk-gui-commits mailing list