function storeRemoteError(errorContainerSelector, errorContent) {
resetRemoteError(errorContainerSelector);
$(errorContainerSelector).html('\
\
');
$(errorContainerSelector).show();
}
function storeRemoteInfo(infoContainerSelector, infoContent) {
resetRemoteError(infoContainerSelector);
$(infoContainerSelector).html('\
\
');
$(infoContainerSelector).show();
}
function resetRemoteError(errorContainerSelector) {
$(errorContainerSelector).html('');
$(errorContainerSelector).hide();
}
function displayRemoteMessage(containerSelector, windowTitle, windowContent) {
$(containerSelector).html(windowContent);
$(containerSelector).append('\
\
\
\
');
$(containerSelector).kendoWindow({
width: "600px",
title: windowTitle,
actions: ["Close"],
modal: true
});
$(containerSelector).data('kendoWindow').center().open();
$('#k_confirmation_ok').click(function() {
$(containerSelector).data('kendoWindow').close();
if (typeof callbackFunction != 'undefined') callbackFunction();
});
}
function displayRemoteConfirmation(containerSelector, windowTitle, windowContent, callbackFunction) {
if (typeof $(containerSelector).data('kendoWindow') != 'undefined') $(containerSelector).data('kendoWindow').close();
$(containerSelector).html(windowContent);
$(containerSelector).append('\
\
\
\
\
');
$(containerSelector).kendoWindow({
width: "600px",
title: windowTitle,
actions: ["Close"],
modal: true
});
$(containerSelector).data('kendoWindow').center().open();
$('#k_confirmation_ok').click(function() {
$(containerSelector).data('kendoWindow').close();
if (typeof callbackFunction != 'undefined') callbackFunction();
});
$('#k_confirmation_cancel').click(function() {
$(containerSelector).data('kendoWindow').close();
});
}
function displayRemoteForm(containerSelector, windowTitle, windowContent, callbackFunction, windowWidth) {
if (typeof $(containerSelector).data('kendoWindow') != 'undefined') $(containerSelector).data('kendoWindow').close();
$(containerSelector).html(''+windowContent+'
');
$(containerSelector).append('\
\
\
\
\
');
if (typeof windowWidth == 'undefined') windowWidth = '1000px';
$(containerSelector).kendoWindow({
width: windowWidth,
title: windowTitle,
actions: ["Close"],
modal: true
});
$(containerSelector).data('kendoWindow').center().open();
$('#k_confirmation_submit').click(function() {
if (typeof callbackFunction != 'undefined') callbackFunction();
});
$('#k_confirmation_close').click(function() {
$(containerSelector).data('kendoWindow').close();
});
}
var kendoBlockCount = 0;
function kendoBlockUI() {
$('#loading').show();
kendoBlockCount++;
}
function kendoUnblockUI() {
kendoBlockCount--;
if (kendoBlockCount <= 0) {
kendoBlockCount = 0;
$('#loading').hide();
}
}
function k_reset_spinner(containerSelector, this_width, this_height) {
var class_spinner = 'k-spinner-class';
if (typeof this_width == 'undefined') this_width = '48px';
if (typeof this_height == 'undefined') this_height = '48px';
var spinner_html = '\
\
';
$(containerSelector).html(spinner_html);
}
function k_hide_spinner(containerSelector) {
var class_spinner = 'k-spinner-class';
$(containerSelector).children("." + class_spinner).remove();
}