diff --git a/static/js/list.js b/static/js/list.js index b9f28d955..7cbffc22f 100644 --- a/static/js/list.js +++ b/static/js/list.js @@ -110,9 +110,6 @@ pandora.ui.list = function() { columnresize: function(data) { pandora.UI.set('listColumnWidth.' + data.id, data.width); }, - resize: function(data) { // this is the resize event of the split panel - that.size(); - }, sort: function(data) { pandora.UI.set({ listSort: [{key: data.key, operator: data.operator}] @@ -385,6 +382,15 @@ pandora.ui.list = function() { that = pandora.ui.navigationView(view); } + if (['list', 'grid', 'clip'].indexOf(view) > -1) { + // react to the resize event of the split panel + that.bindEvent({ + resize: function(data) { + that.size(); + } + }); + } + if (['list', 'grid', 'clips', 'timelines', 'video'].indexOf(view) > -1) { pandora.enableDragAndDrop(that, true);