making external links open new page
This commit is contained in:
parent
3473e6a9ea
commit
64ca586e75
|
|
@ -732,10 +732,12 @@ console.log(href);
|
|||
documentButton = $('<button id=piece_document_button_'+index+" onclick=' window.open('" + href.replace(/\//g, '\/') + "','_blank')>")
|
||||
.attr({title: "view"}).addClass('score_icon');
|
||||
} else {
|
||||
console.log(href);
|
||||
|
||||
documentButton = $('<button id=piece_document_button_'+index+" data-iframe='true' data-src='"+href+download+"'>")
|
||||
.attr({title: "view"}).addClass('score_icon');
|
||||
|
||||
if(typeof doc != 'undefined'){
|
||||
|
||||
documentButton.lightGallery({
|
||||
selector: 'this',
|
||||
width: '90%',
|
||||
|
|
@ -766,6 +768,12 @@ console.log(href);
|
|||
})
|
||||
|
||||
}
|
||||
} else {
|
||||
documentButton = $('<button id=piece_document_button_'+index+">").attr({title: "view"}).addClass('score_icon');
|
||||
documentButton.click(function() {
|
||||
window.open=href;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue