tazpanel diff lib/tazpanel.js @ rev 437

(fix) terminal for user, history support; (fix) keymap list (again); (fix) month selected in clock setup; (feauture) add user/root panel indicator and re-login button; (feature) do not hide menu items and buttons (possibly), just disable them (to see all possibilities).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Apr 07 00:27:17 2015 +0300 (2015-04-07)
parents 93588665639a
children d0dbe11a2060
line diff
     1.1 --- a/lib/tazpanel.js	Wed Apr 01 04:32:19 2015 +0300
     1.2 +++ b/lib/tazpanel.js	Tue Apr 07 00:27:17 2015 +0300
     1.3 @@ -63,7 +63,7 @@
     1.4  		var luminance = (min + max) / 2 / 255;
     1.5  
     1.6  		// Set class for body
     1.7 -		body.className = (luminance > 0.5) ? 'dark' : 'light';
     1.8 +		body.classList.add( (luminance > 0.5) ? 'dark' : 'light');
     1.9  	}
    1.10  	// Now we can use cascade styles for any elements lying on light or dark body:
    1.11  	//   .light h2 { color: #222; }
    1.12 @@ -428,6 +428,7 @@
    1.13  //
    1.14  
    1.15  function countSelPkgs(el) {
    1.16 +	countSelectedSpan = document.getElementById('countSelected');
    1.17  	countSelected = countSelectedSpan.innerText;
    1.18  	if (countSelected == '') countSelected = 0;
    1.19  
    1.20 @@ -451,5 +452,4 @@
    1.21  			checkboxes[i].onchange = countSelPkgs;
    1.22  		}
    1.23  	}
    1.24 -	countSelectedSpan = document.getElementById('countSelected');
    1.25  }