var app = app || {}; var WatcherView = Backbone.View.extend({ model: app.Watcher, update: function(){ this.model.fetch({ success: function(model, response, options){ getSessionInfo(); }, error: function(model, response, options){ if(response.status == 401){ authInfo.loggedIn = false; $("#loginBar").css("visibility", "hidden"); logText('Welcome! Please log in.'); } } }); }, initialize: function(){ this.listenTo(app.Watcher, 'change', function(){ logText('Server data updated!'); draw(); }); } }); app.WatcherView = new WatcherView();
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 8378 | Joe Robinson |
- Server modal working. - Simplified backbone data fetching. - Log out of perforce now and not just empty session. - TODO: - Prettier/different icons for each server type. - Modal image and parent/child list. |
||
#4 | 8373 | Joe Robinson |
- Moved to d3 to handle image drawing (SVG). - Proper sessions (logging in/out) implemented. - TODO: Fix server modal style/formatting & populate with data. |
||
#3 | 8371 | Joe Robinson |
Implemented cookies/sessions (still need logout functionality). Cleaned up logging window; delete older messages so new ones do not break the page. |
||
#2 | 8367 | Joe Robinson |
Improve backbone data retrieval functionality (for building canvas nodes). Connect/login modal working almost as desired. Draw basic things on canvas. Preliminary implementation of Redis DB/cookie saving. |
||
#1 | 8362 | Joe Robinson |
Basic backbone functionality. Removed user routes. |