Skip to content

Instantly share code, notes, and snippets.

@chrisvasey
Created November 7, 2019 10:05
Show Gist options
  • Save chrisvasey/f2aa710ec8e5c69730b17cdf9e4fbcaa to your computer and use it in GitHub Desktop.
Save chrisvasey/f2aa710ec8e5c69730b17cdf9e4fbcaa to your computer and use it in GitHub Desktop.
$(document).ready(function(){
if(datePeram && datePeram != "null"){
$("#filter-date-picker").val(datePeram);
}
$('#filter-date').click(function(){
if($("#filter-date-picker").val()){
datePeram = $("#filter-date-picker").val();
newUrl = url+='siteId='+sitePeram+'&date='+datePeram;
window.location.href=newUrl+=window.location.hash;
}
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment