From: Scott Baker Date: Tue, 15 Jul 2014 01:10:09 +0000 (-0700) Subject: respond to change events X-Git-Url: http://git.onelab.eu/?p=plstackapi.git;a=commitdiff_plain;h=bf33eea8caabb084ff14d2c5400045cab699fcb8 respond to change events --- 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];