Compare commits
3 commits
068293050e
...
69fae04bb8
| Author | SHA1 | Date | |
|---|---|---|---|
| 69fae04bb8 | |||
| 94fc4fbe7a | |||
| 64b8967ded |
3 changed files with 6 additions and 3 deletions
|
|
@ -53,7 +53,10 @@ def embed(request, id):
|
||||||
})
|
})
|
||||||
|
|
||||||
def redirect_url(request, url):
|
def redirect_url(request, url):
|
||||||
|
try:
|
||||||
url = base64.decodebytes(url.encode()).decode()
|
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:
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue