Merge pull request #359 from ZmagoD/zd_SCI_804

disables sorting and columns dropdown when editing or adding new samp…
This commit is contained in:
Zmago Devetak 2016-12-16 12:56:11 +01:00 committed by GitHub
commit c9d38a5454
2 changed files with 12 additions and 1 deletions

View file

@ -556,7 +556,10 @@ function updateButtons() {
$("#addSample").prop("disabled",false);
$("#addNewColumn").removeClass("disabled");
$("#addNewColumn").prop("disabled",false);
$('#samples-columns-dropdown')
.find('.dropdown-toggle')
.prop("disabled",false);
$("th").removeClass('disable-click');
if (rowsSelected.length == 1) {
$("#editSample").prop("disabled", false);
$("#editSample").removeClass("disabled");
@ -614,6 +617,10 @@ function updateButtons() {
$("#assignSamples").prop("disabled", true);
$("#unassignSamples").addClass("disabled");
$("#unassignSamples").prop("disabled", true);
$('#samples-columns-dropdown')
.find('.dropdown-toggle')
.prop("disabled",true);
$("th").addClass('disable-click');
}
}

View file

@ -1712,3 +1712,7 @@ th.custom-field .modal-tooltiptext {
margin-left: 0;
z-index: 99999999;
}
.disable-click {
pointer-events: none;
}