mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-06 13:26:38 +02:00
Fixes misplaced content.
This commit is contained in:
@@ -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'],
|
var modes = ['details', 'list', 'grid', 'icons'],
|
||||||
|
|
||||||
@@ -66,6 +66,7 @@ modulejs.define('view/viewmode', ['_', '$', 'core/settings', 'core/resource', 'c
|
|||||||
|
|
||||||
update(store.get(storekey));
|
update(store.get(storekey));
|
||||||
|
|
||||||
|
event.sub('location.changed', adjustSpacing);
|
||||||
$(window).on('resize', adjustSpacing);
|
$(window).on('resize', adjustSpacing);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user