', {id: FOLDER_CONTENT_ID});
$dirContent.data('path', path);
- if (!isSearch && !isTags) {
- var mode = getViewMode();
- if (mode) {
- $dirContent.addClass(getViewModeClass());
+ if (!isTags) {
+ $dirContent.addClass(getViewModeClass(isSearch));
+ if (!isSearch) {
+ createViewModeButton(APP.toolbar.$bottomR);
}
- createViewModeButton(APP.toolbar.$bottomR);
}
var $list = $('
').appendTo($dirContent);