* Finish task #50318.
This commit is contained in:
@@ -18,3 +18,5 @@ th.c-name {min-width: 240px;}
|
||||
th.c-name {width: auto;}
|
||||
}
|
||||
[lang^='en'] .project-name > .label-warning {width: 55px !important;}
|
||||
|
||||
.table-responsive {overflow: auto !important;}
|
||||
|
||||
@@ -13,8 +13,21 @@ $(function()
|
||||
$.cookie('projectType', projectType, {expires:config.cookieLife, path:config.webRoot});
|
||||
window.location.reload();
|
||||
});
|
||||
|
||||
if(projectType == 'bylist' && !useDatatable) resetNameWidth();
|
||||
});
|
||||
|
||||
function resetNameWidth()
|
||||
{
|
||||
$name = $('#projectForm thead th.c-name');
|
||||
if($name.width() < 150) $name.width(150);
|
||||
}
|
||||
|
||||
$('#mainContent .sidebar-toggle').click(function()
|
||||
{
|
||||
if(!useDatatable) setTimeout("resetNameWidth()", 100);
|
||||
})
|
||||
|
||||
/**
|
||||
* Change program.
|
||||
*
|
||||
|
||||
@@ -21,6 +21,8 @@ js::set('orderBy', $orderBy);
|
||||
js::set('recTotal', $recTotal);
|
||||
js::set('recPerPage', $recPerPage);
|
||||
js::set('pageID', $pageID);
|
||||
js::set('projectType', $projectType);
|
||||
js::set('useDatatable', false);
|
||||
?>
|
||||
<?php
|
||||
if($projectType == 'bycard')
|
||||
|
||||
@@ -138,3 +138,4 @@
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php js::set('useDatatable', $useDatatable);?>
|
||||
|
||||
Reference in New Issue
Block a user