Improved vimperator compatibility in jBox
authorDan Fuhry <dan@enanocms.org>
Sun, 18 Sep 2011 01:26:02 -0400
changeset 1353 1e8c224d47ef
parent 1352 d97cf005f674
child 1354 eecde44145eb
Improved vimperator compatibility in jBox
includes/clientside/static/dropdown.js
--- a/includes/clientside/static/dropdown.js	Sun Sep 04 02:32:49 2011 -0400
+++ b/includes/clientside/static/dropdown.js	Sun Sep 18 01:26:02 2011 -0400
@@ -123,6 +123,13 @@
 								// Setup events
 								obj.childNodes[i].onmouseover = function()  { jBoxOverHandler(this); };
 								obj.childNodes[i].onmouseout = function(e)  { jBoxOutHandler(this, e); };
+								console.debug(obj.childNodes[i].href);
+								if ( obj.childNodes[i].href == window.location.href + '#' )
+									obj.childNodes[i].onclick = function()
+										{
+											jBoxOverHandlerBin(this);
+											return false;
+										};
 								obj.childNodes[i].nextSibling.onmouseout = function(e)  { jBoxOutHandler(this, e); };
 								if ( is_iPhone )
 								{