Add vertical scrollbar to recent uploads table

This commit is contained in:
Duncan Sommerville 2015-09-01 14:27:54 -04:00
parent 46e126145e
commit f283d69481
4 changed files with 7 additions and 9 deletions

View file

@ -68,10 +68,8 @@
</form> </form>
</div> </div>
<H2><?php echo _("Recent Uploads")?></H2> <H2><?php echo _("Recent Uploads")?></H2>
<div class="dataTables_scrolling">
<table id="recent_uploads_table" class="datatable lib-content ui-widget ui-widget-content block-shadow" <table id="recent_uploads_table" class="datatable lib-content ui-widget ui-widget-content block-shadow"
cellpadding="0" cellspacing="0"></table> cellpadding="0" cellspacing="0"></table>
</div> </div>
</div>
<div style="clear: both;"></div> <div style="clear: both;"></div>
</div> </div>

View file

@ -1,9 +1,8 @@
@CHARSET "UTF-8"; @CHARSET "UTF-8";
#recent_uploads > .dataTables_scrolling #recent_uploads .dataTables_scrolling
{ {
top: 41px; top: 0;
bottom: 8px;
} }
#recent_uploads_wrapper #recent_uploads_wrapper
@ -25,9 +24,10 @@
position: absolute; position: absolute;
left: 8px; left: 8px;
right: 8px; right: 8px;
bottom: 0; bottom: 8px;
top: 0; top: 41px;
border: 1px solid #5b5b5b; border: 1px solid #5b5b5b;
overflow-x: hidden;
} }
#recent_uploads_table_wrapper > .fg-toolbar #recent_uploads_table_wrapper > .fg-toolbar

View file

@ -708,7 +708,7 @@ var AIRTIME = (function(AIRTIME) {
"url": sSource, "url": sSource,
"data": aoData, "data": aoData,
"success": fnCallback, "success": fnCallback,
"error": handleAjaxError, "error": handleAjaxError
}); });
}, },
"fnRowCallback": AIRTIME.library.fnRowCallback, "fnRowCallback": AIRTIME.library.fnRowCallback,

View file

@ -185,7 +185,7 @@ $(document).ready(function () {
"bFilter": false, "bFilter": false,
"bSort": false, "bSort": false,
//"sDom": '<"H">frtip<"F"l>', //"sDom": '<"H">frtip<"F"l>',
"sDom": 'frt<"F"lip>', "sDom": '<"dataTables_scrolling"frt><"F"lip>',
"bPaginate": true, "bPaginate": true,
"sPaginationType": "full_numbers", "sPaginationType": "full_numbers",
"oLanguage": getDatatablesStrings({ "oLanguage": getDatatablesStrings({