Hack hack hack...

An open journal-- some of it written for you, but most of it is for me.

FIS Day36

$ rake db:migrate:down VERSION=20080930121212

Lessons Learned

  • We were having trouble adding styling to the vote button after a click, like on stackoverflow.
    • the javascript was located in the vote.js file and would only trigger after the second event
      • ANSWER: The vote is only created after the vote button is clicked the first time, thus if we moved it to issue.js it would work fine.

Merging an upstream and updating the gem

1
2
3
4
5
6
♕ git fetch upstream
♕ git merge upstream/master
#resolve your conflicts

#bundle update gem --source git_user_name
bundle update octokit --source ajonas04
A Simple Click Event
1
2
3
$("a.upvote").click(function(){
  $(this).toggleClass("selected")
});

Data-backdrop:

Includes a modal-backdrop element. Alternatively, specify static for a backdrop which doesn’t close the modal on click.

Andrew Koch VP of Product Management @ Lot18

Comments