Also allow ${id} syntax for consistency with flyout

This commit is contained in:
Antonin Delpeuch 2019-02-19 14:47:24 +00:00
parent 2f298b4093
commit f9ef60e839

View File

@ -1303,7 +1303,7 @@
// clicking with the middle button sends the user to
// the view page.
if('view_url' in this.options && data.id) {
var view_url = this.options.view_url.replace('{{id}}', data.id);
var view_url = this.options.view_url.replace('{{id}}', data.id).replace('${id}', data.id);
li.on('mousedown', function(e) {
if (e.which == 2) {
var win = window.open(view_url, '_blank');