UI Cleanup - Updated System, Tags and Wanted subtrees.

This commit is contained in:
Taloth Saldono
2015-02-14 11:18:21 +01:00
parent d6079a701c
commit 32fc68b9df
46 changed files with 1008 additions and 643 deletions

View File

@@ -5,17 +5,25 @@ var UpdateCollectionView = require('./UpdateCollectionView');
var LoadingView = require('../../Shared/LoadingView');
module.exports = Marionette.Layout.extend({
template : 'System/Update/UpdateLayoutTemplate',
regions : {updates : '#x-updates'},
initialize : function(){
template : 'System/Update/UpdateLayoutTemplate',
regions : {
updates : '#x-updates'
},
initialize : function() {
this.updateCollection = new UpdateCollection();
this.listenTo(this.updateCollection, 'sync', this._showUpdates);
},
onRender : function(){
onRender : function() {
this.updates.show(new LoadingView());
this.updateCollection.fetch();
},
_showUpdates : function(){
this.updates.show(new UpdateCollectionView({collection : this.updateCollection}));
_showUpdates : function() {
this.updates.show(new UpdateCollectionView({ collection : this.updateCollection }));
}
});