* Finish task #50318.

This commit is contained in:
tianshujie
2022-03-08 08:53:55 +08:00
parent bb059dfcaf
commit c2f14bb9c2
4 changed files with 18 additions and 0 deletions
+2
View File
@@ -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
View File
@@ -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.
*
+2
View File
@@ -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);?>