User:Gerbrant/edit/blame.js

new function {	var settings, self = this, myWin = null, div; try{ settings = Gerbrant.edit.blame;  }catch(nosettings){} if(!settings) settings = {}; //Test settings here, like this: if(!settings.onAllPages && !isJsPage) return;

function refreshWindow {		var i, t = [ '\ \ \ ');		div.innerHTML = t.join("");	}	this.show = function	{		if(myWin == null)		{			myWin = new Gerbrant.gui.window("Blame");			div = myWin.getContent;		}		refreshWindow;	}	this.caption = "Blame";	loadModules(["Gerbrant.gui.window", "Gerbrant.gui.toolbox"], function {		module("Gerbrant.edit.blame", self); if(!settings.notInToolbox) Gerbrant.gui.toolbox.addObject(self); }); }