Skip to content

Anbu jquery fix #496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 4, 2012
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
jquery loading and css fixes
  • Loading branch information
daylerees committed Apr 4, 2012
commit ad57ae4fdfe10256dfbf541b65633f82a409d525
1 change: 1 addition & 0 deletions laravel/profiling/profiler.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
.anbu-tabs li
{
display:inline;
line-height:1em !important;
}

.anbu-tabs a, .anbu-tabs a:visited
Expand Down
13 changes: 0 additions & 13 deletions laravel/profiling/profiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,6 @@ public static function query($sql, $bindings, $time)
static::$data['queries'][] = array($sql, $time);
}

/**
* Determine if the given response includes jQuery.
*
* @param Response $response
* @return bool
*/
protected static function has_jquery($response)
{
$pattern = '/\<head>(.*)\<script(.+)jquery(.*)\>\<\/script\>(.*)\<\/head\>/';

return preg_match($pattern, $response->content);
}

/**
* Attach the Profiler's event listeners.
*
Expand Down
2 changes: 1 addition & 1 deletion laravel/profiling/template.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@
</ul>
</div>

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