UIMA-6114 Right justify 3 columns for the scrollable Experiments page
git-svn-id: https://svn.apache.org/repos/asf/uima/uima-ducc/trunk@1867580 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/uima-ducc-web/src/main/webapp/root/experiments.jsp b/uima-ducc-web/src/main/webapp/root/experiments.jsp
index b262185..fa4e5c3 100644
--- a/uima-ducc-web/src/main/webapp/root/experiments.jsp
+++ b/uima-ducc-web/src/main/webapp/root/experiments.jsp
@@ -31,6 +31,7 @@
var oTable;
$(document).ready(function() {
oTable = $('#experiments-table').dataTable( {
+ dom: 'C<"clear">lfrtip',
"bProcessing": true,
"bPaginate": false,
"bFilter": true,
@@ -41,6 +42,10 @@
"aaSorting": [],
"aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ],
"fnRowCallback" : function(nRow,aData,iDisplayIndex) {
+ // right align the Termina-button, Duration & Tasks
+ $('td:eq(0)', nRow).css( "text-align", "right" );
+ $('td:eq(2)', nRow).css( "text-align", "right" );
+ $('td:eq(4)', nRow).css( "text-align", "right" );
return nRow;
},
} );
@@ -91,8 +96,10 @@
<%
if (table_style.equals("scroll")) {
%>
- <table id="experiments-table" width="100%">
+ <table width="100%">
<caption title="Hint: use Preferences -> Table Style to alter format"><b>Experiments List</b><br><i><small>click column heading to sort</small></i></caption>
+ </table>
+ <table id="experiments-table" width="100%">
<thead>
<tr class="ducc-header">
<th class="ducc-col-terminate"></th>
diff --git a/uima-ducc-web/src/main/webapp/root/jobs.jsp b/uima-ducc-web/src/main/webapp/root/jobs.jsp
index 8d8bf84..61cb3ef 100644
--- a/uima-ducc-web/src/main/webapp/root/jobs.jsp
+++ b/uima-ducc-web/src/main/webapp/root/jobs.jsp
@@ -41,7 +41,7 @@
"aaSorting": [],
"aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ],
"fnRowCallback" : function(nRow,aData,iDisplayIndex) {
- $('td:eq(0)', nRow).css( "text-align", "right" );
+ $('td:eq(0)', nRow).css( "text-align", "right" );
$('td:eq(1)', nRow).css( "text-align", "right" );
$('td:eq(3)', nRow).css( "text-align", "right" );
$('td:eq(8)', nRow).css( "text-align", "right" );