* finish task #3395.
This commit is contained in:
@@ -163,12 +163,15 @@ function loadBranch(){}
|
||||
/* Auto compute the work days. */
|
||||
$(function()
|
||||
{
|
||||
if(typeof(replaceID) != 'undefined') setModal4List('iframe', replaceID, function($list)
|
||||
if(typeof(replaceID) != 'undefined')
|
||||
{
|
||||
$list.find('.progress-pie:visible').progressPie();
|
||||
var datatable = $list.data('zui.datatable');
|
||||
if(datatable) datatable.$datatable.find('.progress-pie:visible').progressPie();
|
||||
});
|
||||
setModal4List('iframe', replaceID, function($list)
|
||||
{
|
||||
$list.find('.progress-pie:visible').progressPie();
|
||||
var datatable = $list.data('zui.datatable');
|
||||
if(datatable) datatable.$datatable.find('.progress-pie:visible').progressPie();
|
||||
});
|
||||
}
|
||||
$(".date").bind('dateSelected', function()
|
||||
{
|
||||
computeWorkDays(this.id);
|
||||
|
||||
@@ -1485,6 +1485,18 @@ function fixedTfootAction(formID)
|
||||
if(typeof(ssoRedirect) != "undefined") pageFooterHeight = 0;
|
||||
function fixTfoot()
|
||||
{
|
||||
var $table = $form.find('table:last');
|
||||
var $tfoot = $table.find('tfoot');
|
||||
if($table.hasClass('table-datatable'))
|
||||
{
|
||||
$table = $form.find('.datatable-rows');
|
||||
$tfoot = $form.find('.datatable-footer tfoot');
|
||||
}
|
||||
|
||||
$tbody = $table.find('tbody'),
|
||||
$inputGroup = $tfoot.find('.table-actions').children('.input-group'),
|
||||
pageFooterHeight = $('#footer').height(),
|
||||
|
||||
tableWidth = $table.width();
|
||||
hasFixed = $tfoot.hasClass('fixedTfootAction');
|
||||
offsetHeight = $(window).height() + $(window).scrollTop() - pageFooterHeight/2;
|
||||
@@ -1516,6 +1528,15 @@ function fixedTfootAction(formID)
|
||||
{
|
||||
// Fix table foot when scrolling.
|
||||
fixTfoot();
|
||||
|
||||
var $table = $form.find('table:last');
|
||||
var $tfoot = $table.find('tfoot');
|
||||
if($table.hasClass('table-datatable'))
|
||||
{
|
||||
$table = $form.find('.datatable-rows');
|
||||
$tfoot = $form.find('.datatable-footer tfoot');
|
||||
}
|
||||
|
||||
$tfoot.addClass('scrolling scrolled');
|
||||
clearTimeout(scrollCallTask);
|
||||
scrollCallTask = setTimeout(function(){$tfoot.removeClass('scrolling');}, 200)
|
||||
|
||||
Reference in New Issue
Block a user