1 var rowSelectionCount = 0;
5 function showElement(e, shouldShow) {
6 e.style.display = shouldShow ? "" : "none";
9 function enableElement(e, shouldEnable) {
13 if(e.hasAttribute("disabled"))
14 e.removeAttribute("disabled");
17 e.setAttribute("disabled", "1");
21 function toggleRowSelectionStatus(sender) {
23 tr = document.getElementById(rowID);
25 tr.className = "tableview_selected";
26 rowSelectionCount += 1;
29 tr.className = "tableview";
30 rowSelectionCount -= 1;
32 this.validateControls();
35 function validateControls() {
36 var e = document.getElementById("moveto");
37 this.enableElement(e, rowSelectionCount > 0);
40 function moveTo(uri) {
41 alert("MoveTo: " + uri);