Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't not show the empty tab search window on start in Firefox.

  • Loading branch information...
commit 5cb677eb1ce9b93dd7db9fd1d5c80ef6b32f04b4 1 parent ddd8c39
@netzpirat netzpirat authored
View
4 CHANGELOG.md
@@ -1,3 +1,7 @@
+# Master
+
+- Don't not show the empty tab search window on start in Firefox. ([@netzpirat][])
+
# Version 0.6.0 - April 4, 2012
- Show external links in top level document to avoid `X-Frame-Options` blocking. ([@netzpirat][])
View
2  theme/default/assets/codo.js
1 addition, 1 deletion not shown
View
6 theme/default/lib/scripts/codo.js
@@ -1,7 +1,9 @@
(function() {
$(document).ready(function() {
- var loadSearch;
+ var loadSearch,
+ _this = this;
+ $('#search_frame').hide();
if (window.top.frames.main) {
$('body').addClass('frames');
} else {
@@ -11,7 +13,7 @@
return hljs.highlightBlock(e, ' ');
});
$('#search_frame').on('load', function(event) {
- return $(this).show();
+ return $(_this).show();
});
$('.frames #content a').each(function() {
if (/^https?:\/\//i.test($(this).attr('href'))) {
View
4 theme/default/src/coffee/codo.coffee
@@ -1,5 +1,7 @@
$(document).ready ->
+ $('#search_frame').hide()
+
# Add frame markers
#
if window.top.frames.main
@@ -13,7 +15,7 @@ $(document).ready ->
# Show search box when loaded
#
- $('#search_frame').on 'load', (event) -> $(@).show()
+ $('#search_frame').on 'load', (event) => $(@).show()
# Show external links in the main doc to
# avoid frame blocking by X-Frame-Options.
Please sign in to comment.
Something went wrong with that request. Please try again.