From bf33eea8caabb084ff14d2c5400045cab699fcb8 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Mon, 14 Jul 2014 18:10:09 -0700 Subject: [PATCH] respond to change events --- planetstack/core/xoslib/static/js/xosDeveloper.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/planetstack/core/xoslib/static/js/xosDeveloper.js b/planetstack/core/xoslib/static/js/xosDeveloper.js index 99641c3..9063518 100644 --- a/planetstack/core/xoslib/static/js/xosDeveloper.js +++ b/planetstack/core/xoslib/static/js/xosDeveloper.js @@ -19,6 +19,10 @@ DeveloperApp.SliceListView = Marionette.CompositeView.extend({ events: {"click .sort": "changeSort"}, + initialize: function() { + this.listenTo(this.collection, 'change', this._renderChildren); + }, + changeSort: function(e) { parts=$(e.currentTarget).attr("id").split('-'); order=parts[1]; -- 2.43.0