PageAjaxLoader = function (enableordisable) {
if (enableordisable == 'Enable') {
$('#PageLoader').html('<div id="PageLoaderImage"></div>');
}
else if (enableordisable == 'Disable') {
$('#PageLoader').html('');
}
}
UpdateRequesterData = function (RequesterObj, callBackMethod) {
$.ajax({
url: UpdateRequesterURL,
type: "POST", //async: false,
data: ko.toJSON(RequesterObj),
contentType: "application/json; charset=utf-8",
success: function (data, textStatus, jqXHR) {
callBackMethod(data);
},
error: function (jqXHR, textStatus, errorThrown) {
$("#MessageLabel").html(errorThrown);
$('#NotificationModel').modal('show');
}
});
}
Get Current Date :
/On page Load Set Current Year
var CurrentDate = new Date();
var CurrentDateStr = CurrentDate.getUTCFullYear() + '-' + ('0' + (CurrentDate.getMonth() + 1)).slice(-2) + '-' + ('0' + CurrentDate.getDate()).slice(-2);
No comments:
Post a Comment