From cdb70a8c14e4853e464c0e056473c9a3bb70e36b Mon Sep 17 00:00:00 2001 From: buinsky Date: Wed, 20 Jan 2016 12:43:32 +0300 Subject: [PATCH] WebUI: Move style of dynamic table header to CSS --- src/webui/www/public/css/dynamicTable.css | 4 ++++ src/webui/www/public/properties_content.html | 2 +- src/webui/www/public/scripts/dynamicTable.js | 24 ++++++++++---------- src/webui/www/public/transferlist.html | 2 +- 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/webui/www/public/css/dynamicTable.css b/src/webui/www/public/css/dynamicTable.css index 3a949b0c1..e89be47fa 100644 --- a/src/webui/www/public/css/dynamicTable.css +++ b/src/webui/www/public/css/dynamicTable.css @@ -88,3 +88,7 @@ white-space: nowrap; max-width: 300px; } + +tr.dynamicTableHeader { + cursor: pointer; +} diff --git a/src/webui/www/public/properties_content.html b/src/webui/www/public/properties_content.html index 55efe430f..4c1276c3e 100644 --- a/src/webui/www/public/properties_content.html +++ b/src/webui/www/public/properties_content.html @@ -67,7 +67,7 @@
- + diff --git a/src/webui/www/public/scripts/dynamicTable.js b/src/webui/www/public/scripts/dynamicTable.js index ef6b1c32c..78b03bd73 100644 --- a/src/webui/www/public/scripts/dynamicTable.js +++ b/src/webui/www/public/scripts/dynamicTable.js @@ -439,18 +439,18 @@ var TorrentsTable = new Class({ Extends: DynamicTable, initColumns : function () { - this.newColumn('priority', 'width: 30px; cursor: pointer', '#'); - this.newColumn('state_icon', 'width: 16px', ''); - this.newColumn('name', 'min-width: 200px; cursor: pointer', 'QBT_TR(Name)QBT_TR'); - this.newColumn('size', 'width: 100px; cursor: pointer', 'QBT_TR(Size)QBT_TR'); - this.newColumn('progress', 'width: 80px; cursor: pointer', 'QBT_TR(Done)QBT_TR'); - this.newColumn('num_seeds', 'width: 100px; cursor: pointer', 'QBT_TR(Seeds)QBT_TR'); - this.newColumn('num_leechs', 'width: 100px; cursor: pointer', 'QBT_TR(Peers)QBT_TR'); - this.newColumn('dlspeed', 'width: 100px; cursor: pointer', 'QBT_TR(Down Speed)QBT_TR'); - this.newColumn('upspeed', 'width: 100px; cursor: pointer', 'QBT_TR(Up Speed)QBT_TR'); - this.newColumn('eta', 'width: 100px; cursor: pointer', 'QBT_TR(ETA)QBT_TR'); - this.newColumn('ratio', 'width: 100px; cursor: pointer', 'QBT_TR(Ratio)QBT_TR'); - this.newColumn('label', 'width: 100px; cursor: pointer', 'QBT_TR(Label)QBT_TR'); + this.newColumn('priority', 'width: 30px', '#'); + this.newColumn('state_icon', 'width: 16px; cursor: default', ''); + this.newColumn('name', 'min-width: 200px', 'QBT_TR(Name)QBT_TR'); + this.newColumn('size', 'width: 100px', 'QBT_TR(Size)QBT_TR'); + this.newColumn('progress', 'width: 80px', 'QBT_TR(Done)QBT_TR'); + this.newColumn('num_seeds', 'width: 100px', 'QBT_TR(Seeds)QBT_TR'); + this.newColumn('num_leechs', 'width: 100px', 'QBT_TR(Peers)QBT_TR'); + this.newColumn('dlspeed', 'width: 100px', 'QBT_TR(Down Speed)QBT_TR'); + this.newColumn('upspeed', 'width: 100px', 'QBT_TR(Up Speed)QBT_TR'); + this.newColumn('eta', 'width: 100px', 'QBT_TR(ETA)QBT_TR'); + this.newColumn('ratio', 'width: 100px', 'QBT_TR(Ratio)QBT_TR'); + this.newColumn('label', 'width: 100px', 'QBT_TR(Label)QBT_TR'); this.columns['state_icon'].onclick = ''; this.columns['state_icon'].dataProperties[0] = 'state'; diff --git a/src/webui/www/public/transferlist.html b/src/webui/www/public/transferlist.html index 150783096..87acf804e 100644 --- a/src/webui/www/public/transferlist.html +++ b/src/webui/www/public/transferlist.html @@ -1,6 +1,6 @@
- +