* finish task #3395.

This commit is contained in:
wangyidong
2017-12-18 14:36:24 +08:00
parent 5dab74c631
commit 44bc56562f
2 changed files with 29 additions and 5 deletions
+8 -5
View File
@@ -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);
+21
View File
@@ -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)