mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +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);
|
||||
$("#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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1712,3 +1712,7 @@ th.custom-field .modal-tooltiptext {
|
|||
margin-left: 0;
|
||||
z-index: 99999999;
|
||||
}
|
||||
|
||||
.disable-click {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue