Ver código fonte

ref(filmstrip): add class to body for horizontal filmstrip

master
Leonard Kim 7 anos atrás
pai
commit
7328dd9125
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4
    2
      modules/UI/UI.js

+ 4
- 2
modules/UI/UI.js Ver arquivo

321
         SidePanels.init(eventEmitter);
321
         SidePanels.init(eventEmitter);
322
     }
322
     }
323
 
323
 
324
-    interfaceConfig.VERTICAL_FILMSTRIP
325
-        && $('body').addClass('vertical-filmstrip');
324
+    const filmstripTypeClassname = interfaceConfig.VERTICAL_FILMSTRIP
325
+        ? 'vertical-filmstrip' : 'horizontal-filmstrip';
326
+
327
+    $('body').addClass(filmstripTypeClassname);
326
 
328
 
327
     document.title = interfaceConfig.APP_NAME;
329
     document.title = interfaceConfig.APP_NAME;
328
 };
330
 };

Carregando…
Cancelar
Salvar