Skip to content

Instantly share code, notes, and snippets.

@micho
Created October 19, 2012 11:56
Show Gist options
  • Save micho/3917859 to your computer and use it in GitHub Desktop.
Save micho/3917859 to your computer and use it in GitHub Desktop.
Load personal notes if present
// Load personal notes as a sidebar item
// find personal project
var project = Teambox.collections.projects.detect(function (p) { return p.get('permalink') === 'tb-personal-project-' + Teambox.models.user.id });
if (project) {
Teambox.views.sidebar.apps_list.addApp(
"project_" + project.get('permalink') + "_pages",
"Personal notes",
"#!/projects/" + project.get('permalink') + "/pages",
"pages")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment