transmet/js/funcs.js

25 lines
556 B
JavaScript

$(document).ready( function () {
$("#datepicker").datepicker();
$(".confirm-export").confirm({
"text": "Mark current batch exported?",
"title": "Export confrimation",
confirm: function() {
window.location = "/export";
},
});
if( $('.addedLink').length > 0) {
setTimeout(function (){
window.close();
}, 500);
}
$("form.form-add").submit( function(e) {
if ( $(".add-category").val() == -1) {
e.preventDefault();
$(".add-category-col").addClass("has-error");
}
});
});