Skip to content

Instantly share code, notes, and snippets.

@marti1125
Last active September 28, 2015 23:16
Show Gist options
  • Save marti1125/bed17f31d25f048f7789 to your computer and use it in GitHub Desktop.
Save marti1125/bed17f31d25f048f7789 to your computer and use it in GitHub Desktop.
empty search
$(".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
@marti1125
Copy link
Author

@marti1125
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment