FEATURE: upgrade rack-mini-profiler

new version is collapsed so screen does not fill with timings. expands on click
This commit is contained in:
Sam Saffron 2016-03-06 22:22:45 +11:00
parent 3e018c2588
commit ce040bfa56
2 changed files with 6 additions and 4 deletions

View File

@ -232,8 +232,8 @@ GEM
puma (2.15.3) puma (2.15.3)
r2 (0.2.6) r2 (0.2.6)
rack (1.6.4) rack (1.6.4)
rack-mini-profiler (0.9.8) rack-mini-profiler (0.9.9.1)
rack (>= 1.1.3) rack (>= 1.2.0)
rack-openid (1.3.1) rack-openid (1.3.1)
rack (>= 1.1.0) rack (>= 1.1.0)
ruby-openid (>= 2.1.8) ruby-openid (>= 2.1.8)

View File

@ -75,8 +75,10 @@ const DiscourseRoute = Ember.Route.extend({
}); });
export function cleanDOM() { export function cleanDOM() {
// Close mini profiler
$('.profiler-results .profiler-result').remove(); if (window.MiniProfiler) {
window.MiniProfiler.pageTransition();
}
// Close some elements that may be open // Close some elements that may be open
$('header ul.icons li').removeClass('active'); $('header ul.icons li').removeClass('active');