remove debug output, fix js sorting

neo4j-4
Josha von Gizycki 5 years ago
parent 8937d28346
commit c03a526308

@ -237,7 +237,6 @@ document.addEventListener('DOMContentLoaded', function () {
function onSort(ctx, ix, event) { function onSort(ctx, ix, event) {
const tbl = ctx.tbl const tbl = ctx.tbl
console.debug(tbl, ix, event)
const sortDir = event.target.getAttribute('data-sort') || 'asc' const sortDir = event.target.getAttribute('data-sort') || 'asc'
const sortMod = sortDir === 'asc' ? -1 : 1; const sortMod = sortDir === 'asc' ? -1 : 1;

@ -39,9 +39,9 @@
(for [instance instances] (for [instance instances]
[:tr [:tr
[:td [:td
(tags-for-search instance)
[:a {:href (path :instance-show instance)} [:a {:href (path :instance-show instance)}
(h (:name instance))]] (h (:name instance))]
(tags-for-search instance)]
[:td (prettify-dt (:updated_at instance))] [:td (prettify-dt (:updated_at instance))]
[:td (prettify-dt (:created_at instance))]])]]])) [:td (prettify-dt (:created_at instance))]])]]]))
@ -134,8 +134,8 @@
name (if empty [:i "empty"] (h name))]] name (if empty [:i "empty"] (h name))]]
[:tr [:tr
[:td [:td
(tags-for-search row) name
name] (tags-for-search row)]
[:td [:a {:href (path :instance-show target)} [:td [:a {:href (path :instance-show target)}
(h (:name target))]] (h (:name target))]]
[:td [:a {:href (path :instance-list [:td [:a {:href (path :instance-list
@ -159,8 +159,8 @@
name (if empty [:i "empty"] (h name))]] name (if empty [:i "empty"] (h name))]]
[:tr [:tr
[:td [:td
(tags-for-search row) name
name] (tags-for-search row)]
[:td [:a {:href (path :instance-show source)} [:td [:a {:href (path :instance-show source)}
(h (:name source))]] (h (:name source))]]
[:td [:a {:href (path :instance-list [:td [:a {:href (path :instance-list

Loading…
Cancel
Save