ProjectsModel Module
Module: ProjectManager
I am the ProjectsModel. I hold the data of all projects stored on the server.
Item Index
Methods
deleteProject
(
-
id
-
successCallback
-
failCallback
I delete a project from the server
loadDefaultConfig
(
-
success
-
fail
I load the default settings (../_data/config.json) from the server (to be used when creating new projects) I call my success or fail callback respectively.
loadProjectsIndex
(
-
success
-
fail
I fetch the _index.json of all projects from the server. On success, I also create instances of {{crossLink "Project"}}Project{{/crossLink}} and store them.