Browse Source

Merge pull request #4620 from buinsky/WebUI_add_style

WebUI: Move style of dynamic table header to CSS
adaptive-webui-19844
sledgehammer999 9 years ago
parent
commit
d31ccbde15
  1. 4
      src/webui/www/public/css/dynamicTable.css
  2. 2
      src/webui/www/public/properties_content.html
  3. 24
      src/webui/www/public/scripts/dynamicTable.js
  4. 2
      src/webui/www/public/transferlist.html

4
src/webui/www/public/css/dynamicTable.css

@ -88,3 +88,7 @@
white-space: nowrap; white-space: nowrap;
max-width: 300px; max-width: 300px;
} }
tr.dynamicTableHeader {
cursor: pointer;
}

2
src/webui/www/public/properties_content.html

@ -67,7 +67,7 @@
<div id="peers"> <div id="peers">
<table class="torrentTable" cellpadding="0" cellspacing="0" style="width: 100%"> <table class="torrentTable" cellpadding="0" cellspacing="0" style="width: 100%">
<thead> <thead>
<tr id="torrentPeersTableHeader"> <tr id="torrentPeersTableHeader" class="dynamicTableHeader">
</tr> </tr>
</thead> </thead>
<tbody id="torrentPeersTable"></tbody> <tbody id="torrentPeersTable"></tbody>

24
src/webui/www/public/scripts/dynamicTable.js

@ -439,18 +439,18 @@ var TorrentsTable = new Class({
Extends: DynamicTable, Extends: DynamicTable,
initColumns : function () { initColumns : function () {
this.newColumn('priority', 'width: 30px; cursor: pointer', '#'); this.newColumn('priority', 'width: 30px', '#');
this.newColumn('state_icon', 'width: 16px', ''); this.newColumn('state_icon', 'width: 16px; cursor: default', '');
this.newColumn('name', 'min-width: 200px; cursor: pointer', 'QBT_TR(Name)QBT_TR'); this.newColumn('name', 'min-width: 200px', 'QBT_TR(Name)QBT_TR');
this.newColumn('size', 'width: 100px; cursor: pointer', 'QBT_TR(Size)QBT_TR'); this.newColumn('size', 'width: 100px', 'QBT_TR(Size)QBT_TR');
this.newColumn('progress', 'width: 80px; cursor: pointer', 'QBT_TR(Done)QBT_TR'); this.newColumn('progress', 'width: 80px', 'QBT_TR(Done)QBT_TR');
this.newColumn('num_seeds', 'width: 100px; cursor: pointer', 'QBT_TR(Seeds)QBT_TR'); this.newColumn('num_seeds', 'width: 100px', 'QBT_TR(Seeds)QBT_TR');
this.newColumn('num_leechs', 'width: 100px; cursor: pointer', 'QBT_TR(Peers)QBT_TR'); this.newColumn('num_leechs', 'width: 100px', 'QBT_TR(Peers)QBT_TR');
this.newColumn('dlspeed', 'width: 100px; cursor: pointer', 'QBT_TR(Down Speed)QBT_TR'); this.newColumn('dlspeed', 'width: 100px', 'QBT_TR(Down Speed)QBT_TR');
this.newColumn('upspeed', 'width: 100px; cursor: pointer', 'QBT_TR(Up Speed)QBT_TR'); this.newColumn('upspeed', 'width: 100px', 'QBT_TR(Up Speed)QBT_TR');
this.newColumn('eta', 'width: 100px; cursor: pointer', 'QBT_TR(ETA)QBT_TR'); this.newColumn('eta', 'width: 100px', 'QBT_TR(ETA)QBT_TR');
this.newColumn('ratio', 'width: 100px; cursor: pointer', 'QBT_TR(Ratio)QBT_TR'); this.newColumn('ratio', 'width: 100px', 'QBT_TR(Ratio)QBT_TR');
this.newColumn('label', 'width: 100px; cursor: pointer', 'QBT_TR(Label)QBT_TR'); this.newColumn('label', 'width: 100px', 'QBT_TR(Label)QBT_TR');
this.columns['state_icon'].onclick = ''; this.columns['state_icon'].onclick = '';
this.columns['state_icon'].dataProperties[0] = 'state'; this.columns['state_icon'].dataProperties[0] = 'state';

2
src/webui/www/public/transferlist.html

@ -1,6 +1,6 @@
<table class="torrentTable" cellpadding="0" cellspacing="0"> <table class="torrentTable" cellpadding="0" cellspacing="0">
<thead> <thead>
<tr id="torrentsTableHeader"> <tr id="torrentsTableHeader" class="dynamicTableHeader">
</tr> </tr>
</thead> </thead>
<tbody id="torrentsTable"></tbody> <tbody id="torrentsTable"></tbody>

Loading…
Cancel
Save