close #1053 Added: Dashboard date filter
This commit is contained in:
18
resources/assets/js/plugins/functions.js
vendored
Normal file
18
resources/assets/js/plugins/functions.js
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
// Get Url Paramater
|
||||
function getQueryVariable(variable) {
|
||||
var query = window.location.search.substring(1);
|
||||
|
||||
var vars = query.split("&");
|
||||
|
||||
for (var i = 0; i < vars.length; i++) {
|
||||
var pair = vars[i].split("=");
|
||||
|
||||
if (pair[0] == variable) {
|
||||
return pair[1];
|
||||
}
|
||||
}
|
||||
|
||||
return(false);
|
||||
}
|
||||
|
||||
export {getQueryVariable}
|
Reference in New Issue
Block a user