You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
786 B
32 lines
786 B
$(document).ready(function() {
|
|
$('.has-datepicker').datepicker({dateFormat: 'dd.mm.yy'});
|
|
});
|
|
|
|
function fetch_data(url, async) {
|
|
// makes ajax call (synced by default)
|
|
var result = null;
|
|
$.ajax({
|
|
'async': async || false,
|
|
'global': false,
|
|
'cache': false,
|
|
'url': url,
|
|
'dataType': "json",
|
|
'timeout': 30000,
|
|
'success': function (data) {
|
|
result = data;
|
|
}
|
|
});
|
|
return result;
|
|
}
|
|
|
|
function getUrlVars() {
|
|
var vars = [], hash;
|
|
var href = window.location.href;
|
|
var hashes = href.slice(href.indexOf('?') + 1).split('&');
|
|
for (var i=0; i<hashes.length; i++) {
|
|
hash = hashes[i].split('=');
|
|
vars.push(hash[0]);
|
|
vars[hash[0]] = hash[1];
|
|
}
|
|
return vars;
|
|
}
|
|
|