mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-11 08:51:32 +08:00
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:
commit
c9d38a5454
2 changed files with 12 additions and 1 deletions
|
|
@ -556,7 +556,10 @@ function updateButtons() {
|
||||||
$("#addSample").prop("disabled",false);
|
$("#addSample").prop("disabled",false);
|
||||||
$("#addNewColumn").removeClass("disabled");
|
$("#addNewColumn").removeClass("disabled");
|
||||||
$("#addNewColumn").prop("disabled",false);
|
$("#addNewColumn").prop("disabled",false);
|
||||||
|
$('#samples-columns-dropdown')
|
||||||
|
.find('.dropdown-toggle')
|
||||||
|
.prop("disabled",false);
|
||||||
|
$("th").removeClass('disable-click');
|
||||||
if (rowsSelected.length == 1) {
|
if (rowsSelected.length == 1) {
|
||||||
$("#editSample").prop("disabled", false);
|
$("#editSample").prop("disabled", false);
|
||||||
$("#editSample").removeClass("disabled");
|
$("#editSample").removeClass("disabled");
|
||||||
|
|
@ -614,6 +617,10 @@ function updateButtons() {
|
||||||
$("#assignSamples").prop("disabled", true);
|
$("#assignSamples").prop("disabled", true);
|
||||||
$("#unassignSamples").addClass("disabled");
|
$("#unassignSamples").addClass("disabled");
|
||||||
$("#unassignSamples").prop("disabled", true);
|
$("#unassignSamples").prop("disabled", true);
|
||||||
|
$('#samples-columns-dropdown')
|
||||||
|
.find('.dropdown-toggle')
|
||||||
|
.prop("disabled",true);
|
||||||
|
$("th").addClass('disable-click');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1712,3 +1712,7 @@ th.custom-field .modal-tooltiptext {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
z-index: 99999999;
|
z-index: 99999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.disable-click {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue