mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-20 13:55:58 +00:00
see ChangeLog
Monotone-Revision: 9054022ef1ca8aeba6e34842d27d9b94ce002b89 Monotone-Author: dev-unix.inverse.qc.ca Monotone-Date: 2006-06-15T19:34:10 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
42
UI/WebServerResources/UIxMailListView.js
Normal file
42
UI/WebServerResources/UIxMailListView.js
Normal file
@@ -0,0 +1,42 @@
|
||||
var rowSelectionCount = 0;
|
||||
|
||||
validateControls();
|
||||
|
||||
function showElement(e, shouldShow) {
|
||||
e.style.display = shouldShow ? "" : "none";
|
||||
}
|
||||
|
||||
function enableElement(e, shouldEnable) {
|
||||
if(!e)
|
||||
return;
|
||||
if(shouldEnable) {
|
||||
if(e.hasAttribute("disabled"))
|
||||
e.removeAttribute("disabled");
|
||||
}
|
||||
else {
|
||||
e.setAttribute("disabled", "1");
|
||||
}
|
||||
}
|
||||
|
||||
function toggleRowSelectionStatus(sender) {
|
||||
rowID = sender.value;
|
||||
tr = document.getElementById(rowID);
|
||||
if(sender.checked) {
|
||||
tr.className = "tableview_selected";
|
||||
rowSelectionCount += 1;
|
||||
}
|
||||
else {
|
||||
tr.className = "tableview";
|
||||
rowSelectionCount -= 1;
|
||||
}
|
||||
this.validateControls();
|
||||
}
|
||||
|
||||
function validateControls() {
|
||||
var e = document.getElementById("moveto");
|
||||
this.enableElement(e, rowSelectionCount > 0);
|
||||
}
|
||||
|
||||
function moveTo(uri) {
|
||||
alert("MoveTo: " + uri);
|
||||
}
|
||||
Reference in New Issue
Block a user