diff --git a/static/js/pandora/folders.js b/static/js/pandora/folders.js index 416646956..98758aafe 100644 --- a/static/js/pandora/folders.js +++ b/static/js/pandora/folders.js @@ -270,30 +270,32 @@ pandora.ui.folders = function() { }).bindEvent({ click: function() { var $dialog = Ox.Dialog({ - buttons: Ox.merge( - title != 'Featured Lists' ? [ - Ox.Button({title: 'Sign Up...'}).bindEvent({ - click: function() { - $dialog.close(); - pandora.$ui.accountDialog = pandora.ui.accountDialog('signup').open(); - } - }), - Ox.Button({title: 'Sign In...'}).bindEvent({ - click: function() { - $dialog.close(); - pandora.$ui.accountDialog = pandora.ui.accountDialog('signin').open(); - } - }), - {} - ] : [], - [ - Ox.Button({title: 'Close'}).bindEvent({ - click: function() { - $dialog.close(); - } - }) - ] - ), + buttons: title != 'Featured Lists' ? [ + Ox.Button({title: 'Sign Up...'}).bindEvent({ + click: function() { + $dialog.close(); + pandora.$ui.accountDialog = pandora.ui.accountDialog('signup').open(); + } + }), + Ox.Button({title: 'Sign In...'}).bindEvent({ + click: function() { + $dialog.close(); + pandora.$ui.accountDialog = pandora.ui.accountDialog('signin').open(); + } + }), + {}, + Ox.Button({title: 'Not Now'}).bindEvent({ + click: function() { + $dialog.close(); + } + }) + ] : [ + Ox.Button({title: 'Close'}).bindEvent({ + click: function() { + $dialog.close(); + } + }) + ], content: Ox.Element() .append( $('') diff --git a/static/js/pandora/rightPanel.js b/static/js/pandora/rightPanel.js index 44b52382f..b503c7a51 100644 --- a/static/js/pandora/rightPanel.js +++ b/static/js/pandora/rightPanel.js @@ -20,12 +20,13 @@ pandora.ui.rightPanel = function() { }) .bindEvent({ resize: function(data) { + var clipsItems, previousClipsItems; if (!pandora.user.ui.item) { pandora.resizeFilters(); pandora.$ui.list.size(); if (pandora.user.ui.listView == 'clips') { - var clipsItems = pandora.getClipsItems(); - previousClipsItems = pandora.getClipsItems(pandora.$ui.list.options('width')); + clipsItems = pandora.getClipsItems(); + previousClipsItems = pandora.getClipsItems(pandora.$ui.list.options('width')); pandora.$ui.list.options({width: data.size}); if (clipsItems != previousClipsItems) { Ox.Request.clearCache(); // fixme