[data] Use correct syntax to unset CSS attributes (closes #8602446)
authorRémi Cardona <remi.cardona@logilab.fr>
Fri, 13 Nov 2015 14:29:48 +0100
changeset 10895 90c55e27aa87
parent 10891 5f0442600a3b
child 10957 2fdf67ef3341
[data] Use correct syntax to unset CSS attributes (closes #8602446) 'default' is actually a recognized CSS cursor name (the regular pointer). Using this value doesn't revert to whatever cursor DOM elements have by default ('pointer' on links, 'text' on text, etc). The proper way to unset a CSS attribute on DOM elements is to set it to an empty string. http://stackoverflow.com/questions/2027935/how-to-remove-css-property-using-javascript
web/data/cubicweb.htmlhelpers.js
--- a/web/data/cubicweb.htmlhelpers.js	Fri Nov 06 09:41:11 2015 +0100
+++ b/web/data/cubicweb.htmlhelpers.js	Fri Nov 13 14:29:48 2015 +0100
@@ -39,7 +39,7 @@
  */
 function resetCursor(result) {
     var body = document.getElementsByTagName('body')[0];
-    body.style.cursor = 'default';
+    body.style.cursor = '';
     // pass result to next callback in the callback chain
     return result;
 }