Skip to content

Commit 2da77d3

Browse files
author
James Leigh
committed
issues #640: call preventDefault on delete form event
Signed-off-by: James Leigh <james.leigh@ontotext.com>
1 parent 640a16d commit 2da77d3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

core/http/workbench/src/main/webapp/scripts/delete.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/http/workbench/src/main/webapp/scripts/delete.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/http/workbench/src/main/webapp/scripts/ts/delete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* out if it is.
1212
*/
1313
function checkIsSafeToDelete(event) {
14+
event.preventDefault();
1415
var id = $('#id').val();
1516
var submitForm = false;
1617
var feedback = $('#delete-feedback');
@@ -45,5 +46,4 @@ function checkIsSafeToDelete(event) {
4546
}
4647
}
4748
});
48-
return false;
4949
}

0 commit comments

Comments
 (0)