Page Index Toggle Pages: 1
Topic Tools
Normal Topic Firefox close QuickLinks and PostTools (Read 2,019 times)
Unilat
Development Team
Theme Team
****
Offline



Posts: 1,047
Location: Columbus Ohio, USA
Firefox close QuickLinks and PostTools
Dec 17th, 2010 at 8:34pm
Post Tools
Firefox was throwing errors when trying to close either QuickLinks or Post/ThreadTools by clicking anywhere on the page.

Fix is to add the highlighted in YaBB.js:
Code (Javascript)
Select All
var ev;

function DocClicked(e) {
		ev = e;
		if(DocClick != null) {
			for (var i = 0; i < DocClick.length; i++) {
				eval(DocClick[i]);
			}
		}
} 



And further down change the highlighted:
Code (Javascript)
Select All
function blurLinks(){
	if(lastOpen != null) {
		var target = (ev && ev.target) || (event && event.srcElement);
		var obj = document.getElementById(lastOpen);
		var obj2 = obj.parentNode;
		if (target != obj && target != obj2) { closeLinks(lastOpen); }
	}
}  


  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top