WellDone / strato-old

Strato web portal - device management, configuration, and data visualization for MoMo mobile monitors
MIT License
2 stars 2 forks source link

Start using backbone.js for management lists #81

Closed ChrisLoer closed 10 years ago

ChrisLoer commented 10 years ago

Bind the list of items in the management pages to a backbone collection so that it can re-render without affecting the rest of the page.

amcgee commented 10 years ago

Thanks Chris, this looks like a great start to having a client-side data store and makes rendering a lot nicer! Can you actually re-open this against the "dev" branch though? "master" is pushed to production.

amcgee commented 10 years ago

Also, it looks like the "click" event on individual rows isn't firing - it's essential to navigate to the /manage// page (i.e. /manage/monitor/0 where the user can view data and reports)

amcgee commented 10 years ago

These errors appear in my console on Chrome now:

Uncaught TypeError: Cannot read property 'isRef' of null manage:10
Uncaught TypeError: Cannot read property 'toString' of null manage-page.js:122
Uncaught TypeError: Cannot read property 'isRef' of null manage:10
Uncaught ReferenceError: args is not defined 

The last is the source of the failed 'on click' link - args isn't in scope here. The others should be investigated as well.