diff --git a/editor/js/ui/common/tabs.js b/editor/js/ui/common/tabs.js index 3abd57a1a..ab5460e0a 100644 --- a/editor/js/ui/common/tabs.js +++ b/editor/js/ui/common/tabs.js @@ -231,6 +231,7 @@ RED.tabs = (function() { closeLink.append(''); closeLink.on("click",function(event) { + event.preventDefault(); removeTab(tab.id); }); } diff --git a/editor/js/ui/deploy.js b/editor/js/ui/deploy.js index d2c413521..d3e1feaf0 100644 --- a/editor/js/ui/deploy.js +++ b/editor/js/ui/deploy.js @@ -88,7 +88,10 @@ RED.deploy = (function() { '').prependTo(".header-toolbar"); } - $('#btn-deploy').click(function() { save(); }); + $('#btn-deploy').click(function(event) { + event.preventDefault(); + save(); + }); RED.actions.add("core:deploy-flows",save);