mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 04:05:40 +01:00
added checking and unchecking actions onto the advanced search options.
This commit is contained in:
parent
d4703629e5
commit
3d48a75183
@ -419,6 +419,24 @@ jQuery(function(){
|
|||||||
$("#spnFilterOption input[name=chkOperation]").prop("checked", $(this).prop("checked"));
|
$("#spnFilterOption input[name=chkOperation]").prop("checked", $(this).prop("checked"));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#spnFilterOption input[name=chkOperation]").on("click", function(){
|
||||||
|
if(!$(this).prop("checked")){
|
||||||
|
$("#spnFilterOption input[name=chkAll]").prop("checked", false);
|
||||||
|
}
|
||||||
|
|
||||||
|
var selectedAll = true;
|
||||||
|
|
||||||
|
$("#spnFilterOption input[name=chkOperation]").each(function(i, e){
|
||||||
|
if(!$(e).prop("checked")){
|
||||||
|
selectedAll = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if(selectedAll){
|
||||||
|
$("#spnFilterOption input[name=chkAll]").prop("checked", true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
function getKeyWords(){
|
function getKeyWords(){
|
||||||
var keywords = "";
|
var keywords = "";
|
||||||
var checkedItemList=$("#spnFilterOption input[name=chkOperation]:checked");
|
var checkedItemList=$("#spnFilterOption input[name=chkOperation]:checked");
|
||||||
|
Loading…
Reference in New Issue
Block a user