Index: trunk/admin/lv/js/in-portal.js =================================================================== diff -u -r13 -r1566 --- trunk/admin/lv/js/in-portal.js (.../in-portal.js) (revision 13) +++ trunk/admin/lv/js/in-portal.js (.../in-portal.js) (revision 1566) @@ -7,6 +7,8 @@ this.ReadCookies(); this.Grids = new Array(); + + this.LoadEvents = new Array(); } @@ -21,9 +23,6 @@ } - - - MainScript.prototype.ReadCookies = function() { @@ -178,10 +177,19 @@ } +MainScript.prototype.AddOnLoad = function(onload) +{ + this.LoadEvents.push(onload); +} +MainScript.prototype.ProcessOnload = function() +{ + for (var i in this.LoadEvents) { + eval(this.LoadEvents[i]); + } +} - var theMainScript = new MainScript(); window.theMainScript = theMainScript; \ No newline at end of file