diff --git a/static/js/pandora/homePage.js b/static/js/pandora/homePage.js index 810873ff..a82ffdfa 100644 --- a/static/js/pandora/homePage.js +++ b/static/js/pandora/homePage.js @@ -2,7 +2,7 @@ 'use strict'; -// fixme: remove +// FIXME: remove pandora.ui.homePage = function() { @@ -66,7 +66,7 @@ pandora.ui.homePage = function() { .appendTo($center); that.resize = function() { - var size = Ox.divideInt(window.innerWidth - pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1 - 64, 3); + var size = Ox.splitInt(window.innerWidth - pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1 - 64, 3); $left.css({width: size[0] + 'px'}); $center.css({width: size[1] + 'px'}); $logo.css({width: size[1] + 'px'}); diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index b67bd29f..855617dc 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -529,8 +529,11 @@ pandora.getClipsQuery = function() { }()); pandora.getFilterSizes = function() { - return Ox.divideInt( - window.innerWidth - pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1, 5 + return Ox.splitInt( + window.innerWidth + - pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize + - 1, + 5 ); };