[Midnightbsd-cvs] mports: magus.js: let the user hide the port list.

ctriv at midnightbsd.org ctriv at midnightbsd.org
Tue Mar 18 23:59:53 EDT 2008


Log Message:
-----------
let the user hide the port list.

Modified Files:
--------------
    mports/Tools/magus/www/data/magus/elements:
        magus.js (r1.4 -> r1.5)

-------------- next part --------------
Index: magus.js
===================================================================
RCS file: /home/cvs/mports/Tools/magus/www/data/magus/elements/magus.js,v
retrieving revision 1.4
retrieving revision 1.5
diff -L Tools/magus/www/data/magus/elements/magus.js -L Tools/magus/www/data/magus/elements/magus.js -u -r1.4 -r1.5
--- Tools/magus/www/data/magus/elements/magus.js
+++ Tools/magus/www/data/magus/elements/magus.js
@@ -2,11 +2,12 @@
 loader.src = '/magus/elements/ajax-loader.gif';
 
 function showPorts(id, status) {
+	var td = document.getElementById("ports-display");
 	if (status.length == 0) {
+		td.style.display = 'none';
 		return false;
 	}
 
-	var td = document.getElementById("ports-display");
 	td.innerHTML = '<p style="text-align: center"><img src="' + loader.src + '" /></p>';
 	td.style.display = 'table-cell';
 


More information about the Midnightbsd-cvs mailing list