This diff is collapsed.
......@@ -747,7 +747,14 @@ background-image: -webkit-linear-gradient(top, #777, #AAA, #777);
}
#searchbtn:disabled { }
.search-labels{width: 62%; margin: 10px auto;}
.search-labels {
width: 62%;
margin: 10px auto;
}
.search-label {
color: #555;
}
span.search-label {
display: inline-block; margin: 0 8px;
background-color: #E4E4E4; border: 0;
......
......@@ -273,10 +273,8 @@ class ElemenTable{
if (className.indexOf('group-sel') >= 0){ // group selector cells
//*** Not working at the moment - group selection deactivated
let elements= GROUPS.get(parseInt(element.getAttribute('data-group')));
//console.log("group-sel "+elements);
this.clickListener(elements);//let done =
//if (done)
let elements = GROUPS.get(parseInt(element.getAttribute('data-group')));
this.clickListener(elements);
for (var i = 0; i < elements.length; i++)
this.selectElement(elements[i]);
......@@ -284,13 +282,13 @@ class ElemenTable{
let html= element.innerHTML;
let elSymbol= html.substring(3,html.indexOf('<',3));
if (elSymbol === '&nbsp;') return; // blank cells
//console.log("elSymbol-sel "+elSymbol);
if (className.indexOf('el-selected') >= 0){ // If selected
this.deselectListener(elSymbol);//this.deselectElement(elSymbol);
}else{ // If not selected
this.clickListener([elSymbol]);//let done = this.clickListener([elSymbol]);
this.selectElement(elSymbol);//if (done) this.selectElement(elSymbol);
}
this.clickListener([elSymbol]);
//if (className.indexOf('el-selected') >= 0) { // If selected
//this.deselectListener(elSymbol);
//}else{ // If not selected
//this.clickListener([elSymbol]);
//this.selectElement(elSymbol);
//}
}
}
//e.stopPropagation();
......@@ -354,8 +352,6 @@ class ElemenTable{
deselectAllElements(){
let selectedElements = this.element.querySelectorAll('td.el-selected');
//selectedElements.forEach( element => {
for (let i = 0; i < selectedElements.length; ++i){
let elSymbol = selectedElements[i].getAttribute('data-el').substring(3);
selectedElements[i].className= 'cell '+getElementBlock(elSymbol);
......