Released windows auth, connect to ES.Services.

This commit is contained in:
ITRANSITION\e.revyakin 2014-12-03 11:43:26 +03:00
parent 2569e55609
commit d29c347ff4
294 changed files with 329583 additions and 2315 deletions

View file

@ -0,0 +1,11 @@
function recalculateResourseHeight() {
$(document).ready(function () {
var heights = $(".element-container").map(function () {
return $(this).height();
}).get(),
maxHeight = Math.max.apply(null, heights);
$(".element-container").height(maxHeight);
});
}

View file

@ -0,0 +1,29 @@
$(document).ready(function () {
$(window).load(function () {
GetResources();
});
$(window).scroll(function () {
if (($(window).scrollTop() + 1) >= ($(document).height() - $(window).height())) {
GetResources();
};
});
});
var oldResourcesDivHeight = $('#resourcesDiv').height();
function GetResources() {
$.ajax({
type: 'POST',
url: '/FileSystem/ShowAdditionalContent',
data: '',
dataType: "html",
success: function (result) {
var domElement = $(result);
$('#resourcesDiv').append(domElement);
if ($(document).height() == $(window).height() && oldResourcesDivHeight != $('#resourcesDiv').height()) {
GetResources();
oldResourcesDivHeight = $('#resourcesDiv').height();
};
}
});
};