documents panel: react to document size change

This commit is contained in:
rolux 2014-01-16 03:06:48 +00:00
parent 16491d18b2
commit d2d2636248

View file

@ -379,6 +379,9 @@ pandora.ui.documentsPanel = function(options) {
orientation: 'horizontal' orientation: 'horizontal'
}) })
.bindEvent({ .bindEvent({
pandora_documentsize: function(data) {
that.size(1, data.value);
},
pandora_documentssort: function(data) { pandora_documentssort: function(data) {
updateSortElement(); updateSortElement();
$list.options({sort: data.value}); $list.options({sort: data.value});