|
|
@ -303,12 +303,19 @@ define([
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var scrollDown = module.scrollDown = function (px) {
|
|
|
|
var scrollDown = module.scrollDown = function (px) {
|
|
|
|
|
|
|
|
if (module.scrolling) { return; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.scrolling = true;
|
|
|
|
|
|
|
|
|
|
|
|
var top = $(window).scrollTop() + px + 'px';
|
|
|
|
var top = $(window).scrollTop() + px + 'px';
|
|
|
|
$('html, body').animate({
|
|
|
|
$('html, body').animate({
|
|
|
|
scrollTop: top,
|
|
|
|
scrollTop: top,
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
duration: 200,
|
|
|
|
duration: 200,
|
|
|
|
easing: 'swing',
|
|
|
|
easing: 'swing',
|
|
|
|
|
|
|
|
complete: function () {
|
|
|
|
|
|
|
|
module.scrolling = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -375,7 +382,10 @@ define([
|
|
|
|
addIfAbsent(proxy.table.rowsOrder, id);
|
|
|
|
addIfAbsent(proxy.table.rowsOrder, id);
|
|
|
|
|
|
|
|
|
|
|
|
var $row = table.addRow($wrapper, Checkbox, id);
|
|
|
|
var $row = table.addRow($wrapper, Checkbox, id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (module.ready) {
|
|
|
|
scrollDown($row.height());
|
|
|
|
scrollDown($row.height());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return $option;
|
|
|
|
return $option;
|
|
|
|
};
|
|
|
|
};
|
|
|
|