diff --git a/resources/views/admin/home.blade.php b/resources/views/admin/home.blade.php index a8141e8..1669938 100644 --- a/resources/views/admin/home.blade.php +++ b/resources/views/admin/home.blade.php @@ -517,6 +517,12 @@ }) } function hospitalSelectListner () { + if (window.location.search) { + var project_id = window.location.search.split("=") + if (project_id[1]) { + $("[name=hospital-select] option[value="+project_id[1]+"]").prop("selected",true) + } + } $("[name=hospital-select]").change(function () { var url = window.location.origin + window.location.pathname;