no need to open local urls via /url=

This commit is contained in:
j 2013-12-23 12:51:10 +00:00
parent c248a4c227
commit 658348818c
2 changed files with 2 additions and 2 deletions

View file

@ -457,7 +457,7 @@ pandora.ui.documentsDialog = function(options) {
click: function() { click: function() {
var info = $list.value(selected), var info = $list.value(selected),
url = '/documents/' + selected + '/' + info.name + '.' + info.extension; url = '/documents/' + selected + '/' + info.name + '.' + info.extension;
window.open('/url=' + encodeURIComponent(url), '_blank'); window.open(url, '_blank');
} }
}); });
} }

View file

@ -185,7 +185,7 @@ pandora.ui.documentsView = function(options, self) {
click: function() { click: function() {
var info = self.$documentsList.value(self.selected), var info = self.$documentsList.value(self.selected),
url = '/documents/' + self.selected + '/' + info.name + '.' + info.extension; url = '/documents/' + self.selected + '/' + info.name + '.' + info.extension;
window.open('/url=' + encodeURIComponent(url), '_blank'); window.open(url, '_blank');
} }
}) })
) )