You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
939 B
JavaScript

$("#genrptbtn").click(function () {
setTimeout(function () {
window.location.reload();
}, 1000)
});
var options = {
url: "action.php",
ajaxSettings: {
dataType: "json",
method: "GET",
data: {
action: "autocomplete_user"
}
},
preparePostData: function (data) {
data.q = $("#user-box").val();
return data;
},
getValue: function (element) {
return element.username;
},
template: {
type: "custom",
method: function (value, item) {
return item.name + " <i class=\"small\">" + item.username + "</i>";
}
}
};
$("#user-box").easyAutocomplete(options);
$(function () {
$('#startdate').datetimepicker({
format: "MMM D YYYY",
useCurrent: false
});
$('#enddate').datetimepicker({
format: "MMM D YYYY"/*"YYYY-M-DTH:m"*/,
useCurrent: true
});
});