stable

Clone or download

Read-only

Refactoring: ask directly to the widget its dependencies

This is a part of story #10495 have base cross tracker search widget The widget knows which javascript it depends on, therefore we can ask to it directly, instead of adding an event. Change-Id: I6febf45f509dfce55e9f8a76ee9219268afe1298

Modified Files

Name
A plugins/agiledashboard/include/AgileDashboard/KanbanJavascriptDependenciesProvider.php +44 −0 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/Widget/Kanban.php +8 −0 Go to diff View file
M plugins/agiledashboard/include/agiledashboardPlugin.class.php +3 −34 Go to diff View file
M plugins/agiledashboard/include/autoload.php +3 −2 Go to diff View file
M plugins/tracker/include/Tracker/Widget/ProjectCrossTrackerSearch.php +14 −0 Go to diff View file
M plugins/tracker/include/trackerPlugin.class.php +0 −15 Go to diff View file
D src/common/Dashboard/CollectionOfWidgetsThatNeedJavascriptDependencies.php +0 −53 Go to diff View file
M src/common/Dashboard/JavascriptFilesIncluder.php +2 −44 Go to diff View file
M src/common/Dashboard/Widget/DashboardWidgetPresenter.php +3 −0 Go to diff View file
M src/common/autoload.php +2 −3 Go to diff View file
M src/common/widget/ProjectHeartbeat.php +10 −0 Go to diff View file
M src/common/widget/Widget.class.php +6 −0 Go to diff View file
M src/www/my/index.php +1 −2 Go to diff View file
M src/www/projects.php +1 −2 Go to diff View file
D tests/simpletest/common/Dashboard/EventManagerForTestingPurpose.php +0 −46 Go to diff View file
M tests/simpletest/common/Dashboard/JavascriptFilesIncluderTest.php +16 −4 Go to diff View file