Compare commits

..

3 commits

3 changed files with 6 additions and 3 deletions

View file

@ -53,7 +53,10 @@ def embed(request, id):
}) })
def redirect_url(request, url): def redirect_url(request, url):
url = base64.decodebytes(url.encode()).decode() try:
url = base64.decodebytes(url.encode()).decode()
except:
pass
if settings.CONFIG['site'].get('sendReferrer', False): if settings.CONFIG['site'].get('sendReferrer', False):
return redirect(url) return redirect(url)
else: else:

View file

@ -142,7 +142,7 @@ pandora.ui.info = function() {
}) })
.bindEvent({ .bindEvent({
click: function(data) { click: function(data) {
if (ui.item && ['timeline', 'player', 'editor'].indexOf(ui.itemView) > -1) { if (ui.item && ['timeline', 'player', 'editor'].indexOf(ui.itemView) > -1 && pandora.$ui[ui.itemView]) {
pandora.$ui[ui.itemView].options({ pandora.$ui[ui.itemView].options({
position: data.position position: data.position
}); });

View file

@ -2961,7 +2961,7 @@ pandora.resizeFolders = function(section) {
: section == 'edits' ? width - 16 : section == 'edits' ? width - 16
: width - 48 : width - 48
) - 8); ) - 8);
Ox.forEach(pandora.$ui.folderList, function($list, id) { pandora.$ui.folderList && Ox.forEach(pandora.$ui.folderList, function($list, id) {
var pos = Ox.getIndexById(pandora.site.sectionFolders[section], id); var pos = Ox.getIndexById(pandora.site.sectionFolders[section], id);
pandora.$ui.folder[pos] && pandora.$ui.folder[pos].css({ pandora.$ui.folder[pos] && pandora.$ui.folder[pos].css({
width: width + 'px' width: width + 'px'