Skip to content

Commit

Permalink
Toolbox entry fixed
Browse files Browse the repository at this point in the history
fixed onclick.
  • Loading branch information
MysticJay committed Jul 26, 2022
1 parent a5b1eed commit 04e8f08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/link-show-direction.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function removeDrawToolsStyle () {
});
}

var showDialog = function () {
linkShowDirection.showDialog = function () {
var div = document.createElement('div');

$.each(styles, function(style) {
Expand Down Expand Up @@ -159,7 +159,8 @@ var showDialog = function () {
};

function setup () {
$('#toolbox').append(' <a>LinkDirection Opt</a>').on('click', showDialog);
$('#toolbox').append('<a onclick="window.plugin.linkShowDirection.showDialog();return false;" title="Change LinkDirection settings">LinkDirection Opt</a>');

addHook('linkAdded', function(data) { addLinkStyle(data.link); });

try {
Expand Down

0 comments on commit 04e8f08

Please sign in to comment.