Skip to content

Commit

Permalink
TASK: fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
crydotsnake committed Apr 2, 2022
1 parent 3d3fb11 commit 6f71ded
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cms/static/cms/js/modules/cms.toolbar.js
Expand Up @@ -759,11 +759,14 @@ var Toolbar = new Class({
}
});

$(function(){
$(document).on("click",".js-external-link",function(e){
$(function () {
$(document).on('click', '.js-external-link', function (e) {
e.preventDefault();

var el = $(this);
var url = el.attr("href");

var url = el.attr('href');

window.open(url);
});
});
Expand Down

0 comments on commit 6f71ded

Please sign in to comment.