added checking and unchecking actions onto the advanced search options.

This commit is contained in:
wknet123 2016-02-26 18:13:51 +08:00
parent d4703629e5
commit 3d48a75183

View File

@ -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");