Last active
September 28, 2015 23:16
-
-
Save marti1125/bed17f31d25f048f7789 to your computer and use it in GitHub Desktop.
empty search
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".search-input").on("keyup",function(){ | |
if($(this).val().length === 0){ | |
window.history.pushState("", "std - Rust", "?search="); | |
$('#main.content').removeClass('hidden'); | |
$('#search.content').addClass('hidden'); | |
} | |
}); | |
$('.search-input').on('search', function () { | |
if($(this).val().length === 0){ | |
window.history.pushState("", "std - Rust", "?search="); | |
$('#main.content').removeClass('hidden'); | |
$('#search.content').addClass('hidden'); | |
} | |
}); | |
steveklabnik there's a few things you can do | |
16:53 steveklabnik do you have any other remotes, like the official rust one? | |
16:54 steveklabnik i have one in mine as 'upstream' | |
16:55 steveklabnik if not, 'git remote add upstream https://github.com/rust-lang/rust' will give you one | |
16:55 steveklabnik and then, you can 'git fetch upstream' to pull in the upstream, and 'git rebase -i upstream/master' to rebase off of official master, rather than your master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rust-lang/rust#28696