dharmafly / tasket

A micro-volunteering app, for crowd-managed tasks.
http://dharmafly.com/tasket
26 stars 3 forks source link

Update the logic for displaying the "View archived projects" link #390

Open orangespaceman opened 13 years ago

orangespaceman commented 13 years ago

Currently the link for viewing archived projects is displayed on load when the statistics contain at least one archived project, or when a project is archived.

See dashboard.js - updateArchivedProjectsLink() and hub-form.js - _onArchive()

The statistics object is updated when a task is changed, it should also be updated when a project is changed too. Then, this should be bound to update when the statistics is updated.