1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Stop some ui elements from clearing url anchor when clicked

This commit is contained in:
Nick O'Leary 2017-03-06 15:30:42 +00:00
parent 7698990e37
commit 1ff23ebfd9
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 5 additions and 1 deletions

View File

@ -231,6 +231,7 @@ RED.tabs = (function() {
closeLink.append('<i class="fa fa-times" />');
closeLink.on("click",function(event) {
event.preventDefault();
removeTab(tab.id);
});
}

View File

@ -88,7 +88,10 @@ RED.deploy = (function() {
'</span></li>').prependTo(".header-toolbar");
}
$('#btn-deploy').click(function() { save(); });
$('#btn-deploy').click(function(event) {
event.preventDefault();
save();
});
RED.actions.add("core:deploy-flows",save);