From ab71a133d9d37359805f9dd841ecee776358ebf8 Mon Sep 17 00:00:00 2001 From: Gabriel Hurley Date: Wed, 6 Jun 2012 12:35:55 -0700 Subject: [PATCH] Re-enabling client-side table sorting on a basic level. Fixes bug 1009677. Change-Id: I8a1fc225432ea868bb751f261ed69c8d045ceb55 --- horizon/static/horizon/js/tables.js | 1 + .../static/dashboard/css/style.css | 13 +++++++++++++ .../static/dashboard/img/up_arrow.png | Bin 0 -> 974 bytes 3 files changed, 14 insertions(+) create mode 100644 openstack_dashboard/static/dashboard/img/up_arrow.png diff --git a/horizon/static/horizon/js/tables.js b/horizon/static/horizon/js/tables.js index 30ae1b66e..0715ace44 100644 --- a/horizon/static/horizon/js/tables.js +++ b/horizon/static/horizon/js/tables.js @@ -37,4 +37,5 @@ horizon.addInitFunction(function() { }); horizon.datatables.update(); + $("table.table").tablesorter(); }); diff --git a/openstack_dashboard/static/dashboard/css/style.css b/openstack_dashboard/static/dashboard/css/style.css index 53da34250..831b006db 100644 --- a/openstack_dashboard/static/dashboard/css/style.css +++ b/openstack_dashboard/static/dashboard/css/style.css @@ -366,6 +366,19 @@ a.current_item:hover h3, a.current_item:hover h4 { margin-bottom: 5px; float: left; } +.table th.headerSortUp, +.table th.headerSortDown { + background-color: #DFDFDF; + background-repeat: no-repeat; + background-position: 98% center; +} +.table th.headerSortDown { + background-image: url(../img/drop_arrow.png); +} +.table th.headerSortUp { + background-image: url(../img/up_arrow.png); +} + th { background: #f1f1f1; } diff --git a/openstack_dashboard/static/dashboard/img/up_arrow.png b/openstack_dashboard/static/dashboard/img/up_arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..0f6e50fc87a9cb762d4dedb98aea30663e26059d GIT binary patch literal 974 zcmaJ=O=}ZD7+%|2`UxT;RTPFTcrrUPnanY?eSi{&- zZ0bp7f{|h`;A}xyU5f+LZW9J9vg7)y`2FoW5x9;jZf6W+1Vz$vH@hLJb<1_T+qQF# zxONMy#tIkk2s1(K?fQ`tt71=A;p^lWil7H!ZB;xq)i5fcNJ9cL5=z-9i$Qit!b>Q( zl)DLJgb~CtM9V3Rl+3b%FzA0Gj}|&jrK+v>WAU9TwipW(2s@pQ)JaP;+<`ck%RwYV zSx#|8D%$s%8K?YcaiE})$PV3rxzq=VqG{1Rri$F@X$oF2l=Y*2nRvlqYz7cZC`oAm zG>rd4J#UDPSe2al{ikqL-wz0^l8EkwHov&$ViGD)iXkx>4eONd4yssbQAVQ{4M4G$ zkucbHeTR0U9^NpNk{>bCw@FD;MXn&ZuA`v5ypq;+xqy(4v5pIJzEIHROnN0R<6=f1 za5ZZ0dBkS}u5-pskK`t;-~~LgMnd-ian?iXfnLgrJK75xsn_Q^qrKpfT*%G91o@6;}TfP}KKJj_ChrF$izFv62pG2Xg-ndwbv(9k@N)X;@1xtuyfb$( zJ#Ni{=8ae9PL|JGF1Y;u_2KjrYvK6g$>R-t*Vvl4WVgnqknrQn#Ix(ye$6H?tfZH< JH-&qT{s0u~EI$AM literal 0 HcmV?d00001