2015-04-28 15:10:40 +00:00
|
|
|
$(document).ready( function () {
|
2015-05-14 15:29:01 +00:00
|
|
|
$("#datepicker").datepicker();
|
|
|
|
|
2015-05-15 14:26:50 +00:00
|
|
|
$(".confirm-export").confirm({
|
2015-05-14 15:29:01 +00:00
|
|
|
"text": "Mark current batch exported?",
|
|
|
|
"title": "Export confrimation",
|
|
|
|
confirm: function() {
|
2015-05-15 14:26:50 +00:00
|
|
|
window.location = "/export";
|
2015-05-14 15:29:01 +00:00
|
|
|
},
|
|
|
|
});
|
2015-05-16 19:48:42 +00:00
|
|
|
|
|
|
|
if( $('.addedLink').length > 0) {
|
|
|
|
setTimeout(function (){
|
|
|
|
window.close();
|
|
|
|
}, 500);
|
|
|
|
}
|
2015-05-16 21:29:31 +00:00
|
|
|
|
|
|
|
$("form.form-add").submit( function(e) {
|
|
|
|
if ( $(".add-category").val() == -1) {
|
|
|
|
e.preventDefault();
|
|
|
|
$(".add-category-col").addClass("has-error");
|
|
|
|
}
|
|
|
|
});
|
2015-04-28 15:10:40 +00:00
|
|
|
});
|