Created
October 19, 2012 11:56
-
-
Save micho/3917859 to your computer and use it in GitHub Desktop.
Load personal notes if present
This file contains 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
// 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