no need to open local urls via /url=
This commit is contained in:
parent
c248a4c227
commit
658348818c
2 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -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');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue