Your IP : 13.59.110.86
/**
* Dashboard List after insert update
* @param {object} window global object
* @param {function} $ jQuery library
* @param {object} EventMgr EventMgr library
* @param {object} App Application
* @return {object} api
*/
App.DashboardList = function(window, $, EventMgr, App) {
'use strict';
var minimizeColSel = '.i-minimize-col';
function fitCol(e, data) {
var blockId = data.tabId,
$block = $('#' + blockId),
$table = $block.find('.list_table'),
$minimizedCol = $table.find(minimizeColSel),
tableWidth, blockWidth, dfWidth, colWidth;
$table.removeClass('b-list_overflow_ellipsis');
$minimizedCol.css('width', '');
if ($minimizedCol.length) {
tableWidth = $table.width();
blockWidth = $block.width();
if (tableWidth > blockWidth) {
dfWidth = tableWidth - blockWidth;
colWidth = $minimizedCol.width();
$minimizedCol.css('width', (colWidth - dfWidth) + 'px');
$table.addClass('b-list_overflow_ellipsis');
EventMgr.trigger('updateScroll', { id: blockId + '-scrollwrapper' });
}
}
}
function init() {
EventMgr.bind('appendDashList', fitCol);
}
var api = {
init: init
};
return api;
} (window, $, EventMgr, App);