");
// Disable_Chkout();
// $(".fa-times").click(function () {
// var datadivid = $(this).closest('div').attr('id');
// $("#" + datadivid).remove();
// });
// if ($(document).find(".noday").length > 0) {
// $(".noday").addClass("tooltip2");
// $('.noday').append('
Not Available');
// }
// } /*,
// onHover: function(el, cell, date, data) {
// $(".noday").addClass("tooltip2");
// $('.noday').append('
Not Available');
// },*/
// });
// if ($(document).find(".noday").length > 0) {
// $(".noday").addClass("tooltip2");
// $('.noday').append('
Not Available');
// }
// });
// date function
onClick: function (target, cell, date) {
var datenextmonth = date.getMonth() + 1;
target.val(date.getFullYear() + '-' +
datenextmonth + '-' +
date.getDate());
//start test code
if ($('#box').text() == '') {
$("#box").append("
" + date.getDate() + '-' + datenextmonth + '-' + date.getFullYear() + " " + "
");
// $("#box").append("
" + date.getDate() + '-' + datenextmonth + '-' + date.getFullYear() + "
");
Disable_Chkout();
}
else {
Disable_Chkout();
var selecteddate = date.getDate() + '-' + datenextmonth + '-' + date.getFullYear();
if ($('#box > div.selection-box:contains("' + selecteddate + '")').length > 0) {
alert("You have picked this date");
}
else {
$("#box").append("
" + date.getDate() + '-' + datenextmonth + '-' + date.getFullYear() + " " + "
");
// $("#box").append("
" + date.getDate() + '-' + datenextmonth + '-' + date.getFullYear() + "
");
Disable_Chkout();
Date_Add();
// here date
}
}
//end test code ehsan
$(".fa-times").click(function () {
var datadivid = $(this).closest('div').attr('id');
$("#" + datadivid).remove();
//alert(datadivid);
//alert(document.getElementById("txtcheckdate").value);
//Date_Del();
var b = document.getElementById("txtcheckdate").value;
//document.getElementById("txtcheckdate").value = datadivid;
if (b == datadivid) {
//alert("In");
}
if (b != datadivid) {
//alert("out");
Date_Del();
//var b = document.getElementById("txtRdate").value;
//b--;
//document.getElementById("txtRdate").value = b;
}
document.getElementById("txtcheckdate").value = datadivid;
});
if ($(document).find(".noday").length > 0) {
$(".noday").addClass("tooltip2");
$('.noday').append('
Not Available');
}
} /*,
onHover: function(el, cell, date, data) {
$(".noday").addClass("tooltip2");
$('.noday').append('
Not Available');
},*/
});
if ($(document).find(".noday").length > 0) {
$(".noday").addClass("tooltip2");
$('.noday').append('
Not Available');
}
});
$("#boldbutton").click(function () {
document.execCommand('bold');
Disable_Chkout();
});
$('#comment2').keyup(function (e) {
var txtVal = $(this).clone();
$('#previewcomment').html(txtVal);
Disable_Chkout();
});
$('#comment2').focus(function (e) {
var txtVal = $(this).clone();
$('#previewcomment').html(txtVal);
Disable_Chkout();
});
});