Show:

I am the ProjectsModel. I hold the data of all projects stored on the server.

Methods

deleteProject

(
  • id
  • successCallback
  • failCallback
)

I delete a project from the server

Parameters:

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.

Parameters:

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.

Parameters:

updateModel

(
  • success
  • fail
)

I reload the data from the server.

Parameters: