Right styling of selected item in pager. rather.stable.2007.01.11
authorAnders S. Mortensen <sondberg@indexdata.dk>
Thu, 11 Jan 2007 13:31:31 +0000 (13:31 +0000)
committerAnders S. Mortensen <sondberg@indexdata.dk>
Thu, 11 Jan 2007 13:31:31 +0000 (13:31 +0000)
www/demo/search.js

index e4f6dab..bce9e79 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: search.js,v 1.20 2007-01-11 12:47:19 sondberg Exp $
+/* $Id: search.js,v 1.21 2007-01-11 13:31:31 sondberg Exp $
  * ---------------------------------------------------
  * Javascript container
  */
@@ -169,8 +169,8 @@ function make_pager (hits, offset, max) {
             page_elem.className = 'select';
         }
 
-        page_elem.setAttribute('href', '#');
         page_elem.setAttribute('off', off);
+        page_elem.style.cursor = 'pointer';
         page_elem.onclick = function () {
             update_offset(this.getAttribute('off'));
         };