From bbb9f0da5e9e31beb305b3336a7d6c1de3cb676a Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Mon, 9 Jun 2014 19:36:30 +0100 Subject: [PATCH] Use pointer cursor when hovering sortable table headings --- html/css/melpa.css | 3 +++ html/js/melpa.js | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/html/css/melpa.css b/html/css/melpa.css index 6d71222f..8cf10ea4 100644 --- a/html/css/melpa.css +++ b/html/css/melpa.css @@ -37,4 +37,7 @@ a[name] { /* Stop navbar from hiding anchors */ } .muted { color: #999; +} +.sortable { + cursor: pointer; } \ No newline at end of file diff --git a/html/js/melpa.js b/html/js/melpa.js index d5f0212d..e5338cc9 100644 --- a/html/js/melpa.js +++ b/html/js/melpa.js @@ -208,12 +208,12 @@ m("table#package-list.table.table-bordered.table-responsive.table-hover", [ m("thead", [ m("tr", [ - m("th", {onclick: sortToggler("name")}, ["Package", sortIndicator("name")]), - m("th", {onclick: sortToggler("description")}, ["Description", sortIndicator("description")]), - m("th", {onclick: sortToggler("version")}, ["Version", sortIndicator("version")]), + m("th.sortable", {onclick: sortToggler("name")}, ["Package", sortIndicator("name")]), + m("th.sortable", {onclick: sortToggler("description")}, ["Description", sortIndicator("description")]), + m("th.sortable", {onclick: sortToggler("version")}, ["Version", sortIndicator("version")]), m("th", "Recipe"), - m("th", {onclick: sortToggler("fetcher")}, ["Source", sortIndicator("fetcher")]), - m("th", {onclick: sortToggler("downloads")}, ["DLs", sortIndicator("downloads")]), + m("th.sortable", {onclick: sortToggler("fetcher")}, ["Source", sortIndicator("fetcher")]), + m("th.sortable", {onclick: sortToggler("downloads")}, ["DLs", sortIndicator("downloads")]), ]) ]), m("tbody",