Tools/ChangeLog

 12016-01-28 Jason Marcell <jmarcell@apple.com>
 2
 3 Refactor to add event listeners and start periodic updates for all trac instances.
 4 https://bugs.webkit.org/show_bug.cgi?id=153609
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
 9 (BuildbotQueueView): Adding event listeners for all trac instances.
 10 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js: Starting periodic updates
 11 for all trac instances.
 12
1132016-01-28 Csaba Osztrogonác <ossy@webkit.org>
214
315 Unreviewed buildfix after r195743.

Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js

@@BuildbotQueueView = function(queues)
3838 queue.addEventListener(BuildbotQueue.Event.UnauthorizedAccess, this._unauthorizedAccess, this);
3939 }.bind(this));
4040
41  Dashboard.Repository.OpenSource.trac.addEventListener(Trac.Event.CommitsUpdated, this._newCommitsRecorded, this);
42  if (typeof Dashboard.Repository.Internal.trac != "undefined")
43  Dashboard.Repository.Internal.trac.addEventListener(Trac.Event.CommitsUpdated, this._newCommitsRecorded, this);
 41 var sortedRepositories = Dashboard.sortedRepositories;
 42 for (var i = 0; i < sortedRepositories.length; i++) {
 43 var trac = sortedRepositories[i].trac;
 44 if (trac)
 45 trac.addEventListener(Trac.Event.CommitsUpdated, this._newCommitsRecorded, this);
 46 }
4447};
4548
4649BaseObject.addConstructorFunctions(BuildbotQueueView);

Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js

@@function documentReady()
323323 }
324324}
325325
326 Dashboard.Repository.OpenSource.trac.startPeriodicUpdates();
327 if (typeof Dashboard.Repository.Internal.trac !== "undefined")
328  Dashboard.Repository.Internal.trac.startPeriodicUpdates();
 326var sortedRepositories = Dashboard.sortedRepositories;
 327for (var i = 0; i < sortedRepositories.length; ++i) {
 328 var trac = sortedRepositories[i].trac;
 329 if (typeof trac !== "undefined")
 330 trac.startPeriodicUpdates();
 331}
329332
330333document.addEventListener("DOMContentLoaded", documentReady);