respond to change events
authorScott Baker <smbaker@gmail.com>
Tue, 15 Jul 2014 01:10:09 +0000 (18:10 -0700)
committerScott Baker <smbaker@gmail.com>
Tue, 15 Jul 2014 01:10:09 +0000 (18:10 -0700)
planetstack/core/xoslib/static/js/xosDeveloper.js

index 99641c3..9063518 100644 (file)
@@ -19,6 +19,10 @@ DeveloperApp.SliceListView = Marionette.CompositeView.extend({
 \r
   events: {"click .sort": "changeSort"},\r
 \r
+  initialize: function() {\r
+      this.listenTo(this.collection, 'change', this._renderChildren);\r
+  },\r
+\r
   changeSort: function(e) {\r
       parts=$(e.currentTarget).attr("id").split('-');\r
       order=parts[1];\r