From 2b8e223d1d007098ad2246ec56e47a1d3e33420f Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Sun, 21 Jul 2013 03:18:40 +0200 Subject: [PATCH] Fixes misplaced content. --- src/_h5ai/client/js/inc/view/viewmode.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_h5ai/client/js/inc/view/viewmode.js b/src/_h5ai/client/js/inc/view/viewmode.js index 2fe5ef74..045f8bf9 100644 --- a/src/_h5ai/client/js/inc/view/viewmode.js +++ b/src/_h5ai/client/js/inc/view/viewmode.js @@ -1,5 +1,5 @@ -modulejs.define('view/viewmode', ['_', '$', 'core/settings', 'core/resource', 'core/store'], function (_, $, allsettings, resource, store) { +modulejs.define('view/viewmode', ['_', '$', 'core/settings', 'core/resource', 'core/store', 'core/event'], function (_, $, allsettings, resource, store, event) { var modes = ['details', 'list', 'grid', 'icons'], @@ -66,6 +66,7 @@ modulejs.define('view/viewmode', ['_', '$', 'core/settings', 'core/resource', 'c update(store.get(storekey)); + event.sub('location.changed', adjustSpacing); $(window).on('resize', adjustSpacing); };