rack-mini-profiler 0.9.9.1 → 0.9.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rack-mini-profiler might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/html/includes.js +4 -2
- data/lib/mini_profiler/asset_version.rb +1 -1
- data/lib/mini_profiler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2b10bd196bae4ba4dd1b18d3bdf54744e895f86
|
4
|
+
data.tar.gz: 33866dddf039f21eca7380c23fd31a09071d8666
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 010b6b5b681db1dc8fddab3100c450a533be17b53290d07e9fafd89e29ac3fe6c6659371b978796455ebc8c6131192c1386186f1285abb81e5a1ccffcfe9e79a
|
7
|
+
data.tar.gz: 9cacdd67dc52d42556e6e0793d76675bf3bbc0ed27a748cd6f407b5996dc7a2f437e7ed559f905620ed267595bf3f79cf5744b25f5b4b7fd9f527c9c4b2bdf10
|
data/CHANGELOG.md
CHANGED
data/lib/html/includes.js
CHANGED
@@ -10,6 +10,7 @@ var MiniProfiler = (function () {
|
|
10
10
|
ajaxStartTime,
|
11
11
|
totalsControl,
|
12
12
|
reqs = 0,
|
13
|
+
expandedResults = false,
|
13
14
|
totalTime = 0;
|
14
15
|
;
|
15
16
|
|
@@ -159,7 +160,7 @@ var MiniProfiler = (function () {
|
|
159
160
|
totalTime += parseFloat(json.duration_milliseconds, 10);
|
160
161
|
reqs++;
|
161
162
|
|
162
|
-
if (!controls && reqs > 1 && options.collapseResults) {
|
163
|
+
if (!controls && reqs > 1 && options.collapseResults && !expandedResults) {
|
163
164
|
if (!totalsControl) {
|
164
165
|
container.find('.profiler-result').hide();
|
165
166
|
|
@@ -168,7 +169,7 @@ var MiniProfiler = (function () {
|
|
168
169
|
totalsControl.click(function(){
|
169
170
|
totalsControl.parent().find('.profiler-result').show();
|
170
171
|
totalsControl.hide();
|
171
|
-
|
172
|
+
expandedResults = true;
|
172
173
|
});
|
173
174
|
|
174
175
|
totalsControl.find('.profiler-button').show();
|
@@ -752,6 +753,7 @@ var MiniProfiler = (function () {
|
|
752
753
|
}
|
753
754
|
reqs = 0;
|
754
755
|
totalTime = 0;
|
756
|
+
expandedResults = false;
|
755
757
|
$('.profiler-results .profiler-result').remove();
|
756
758
|
},
|
757
759
|
|