Fixed direction related regression in drop down code
authorDan
Sun, 25 Jul 2010 11:23:09 -0400
changeset 1265 7091cff2ca01
parent 1264 28c82f292a52
child 1266 f3933b355229
Fixed direction related regression in drop down code
includes/clientside/static/dropdown.js
--- a/includes/clientside/static/dropdown.js	Sun Jul 25 11:15:53 2010 -0400
+++ b/includes/clientside/static/dropdown.js	Sun Jul 25 11:23:09 2010 -0400
@@ -62,7 +62,7 @@
 	removeTextNodes(obj);
 	
 	var html = document.getElementsByTagName('html')[0];
-	var direction = typeof(html.dir) != 'undefined' ? html.dir : 'ltr';
+	var direction = typeof(html.dir) != 'undefined' && html.dir != '' ? html.dir : 'ltr';
 	
 	for ( var i = 0; i < obj.childNodes.length; i++ )
 	{