Skip to content

Commit ad57ae4

Browse files
committed
jquery loading and css fixes
1 parent 1c26ce8 commit ad57ae4

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

laravel/profiling/profiler.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
.anbu-tabs li
2121
{
2222
display:inline;
23+
line-height:1em !important;
2324
}
2425

2526
.anbu-tabs a, .anbu-tabs a:visited

laravel/profiling/profiler.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,6 @@ public static function query($sql, $bindings, $time)
6060
static::$data['queries'][] = array($sql, $time);
6161
}
6262

63-
/**
64-
* Determine if the given response includes jQuery.
65-
*
66-
* @param Response $response
67-
* @return bool
68-
*/
69-
protected static function has_jquery($response)
70-
{
71-
$pattern = '/\<head>(.*)\<script(.+)jquery(.*)\>\<\/script\>(.*)\<\/head\>/';
72-
73-
return preg_match($pattern, $response->content);
74-
}
75-
7663
/**
7764
* Attach the Profiler's event listeners.
7865
*

laravel/profiling/template.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@
6464
</ul>
6565
</div>
6666

67-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
67+
<script>window.jQuery || document.write("<script src='//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'>\x3C/script>")</script>
6868
<script>{{ file_get_contents(path('sys').'profiling/profiler.js') }}</script>
6969
<!-- /ANBU - LARAVEL PROFILER -->

0 commit comments

Comments
 (0)