From d0a5d750dbc4925fea9e029c38a3afca8cee8fdb Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Wed, 30 May 2018 16:10:11 +0200 Subject: [PATCH] Fix unclickable checkbox in documents view 1. Clicks to the document selection checkbox were captured by the onclick handler of the document item header. This is now fixed. 2. Reexpose the doc title link to mouse events by putting it on top of the header link layer. --- .../document/change_list_results.html | 38 +++++++++++++++++-- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/src/documents/templates/admin/documents/document/change_list_results.html b/src/documents/templates/admin/documents/document/change_list_results.html index 5bd5b1aff..b33cd2927 100644 --- a/src/documents/templates/admin/documents/document/change_list_results.html +++ b/src/documents/templates/admin/documents/document/change_list_results.html @@ -29,13 +29,32 @@ .result .header { padding: 5px; background-color: #79AEC8; + position: relative; } - .result .header .checkbox{ + .result .header .checkbox { width: 5%; float: left; + position: absolute; + z-index: 2; } .result .header .info { margin-left: 10%; + position: relative; + } + .headerLink { + cursor: pointer; + opacity: 0; + z-index: 1; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + } + .header > a { + z-index: 2; + margin-left: 10%; + position: relative; } .result .header a, .result a.tag { @@ -136,12 +155,23 @@ {# 7: Document edit url #}