From bd66c9e87f9b47d2945d735807a2d30655e93a18 Mon Sep 17 00:00:00 2001 From: George Schneeloch Date: Thu, 22 Oct 2015 11:10:00 -0400 Subject: [PATCH] Fixed link click behavior for term edit and delete --- ui/static/ui/js/manage_taxonomies.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/static/ui/js/manage_taxonomies.jsx b/ui/static/ui/js/manage_taxonomies.jsx index 480041b7..840ea5d5 100644 --- a/ui/static/ui/js/manage_taxonomies.jsx +++ b/ui/static/ui/js/manage_taxonomies.jsx @@ -60,7 +60,8 @@ define('manage_taxonomies', ['react', 'lodash', 'jquery', 'uri', * If user selects edit button then open edit mode * Else call api to update term. */ - editTerm: function() { + editTerm: function(e) { + e.preventDefault(); this.setState({ formatActionState: 'edit', label: this.props.term.label @@ -83,7 +84,8 @@ define('manage_taxonomies', ['react', 'lodash', 'jquery', 'uri', // user is in edit mode. Cancel edit if user presses cross icon. this.resetUtilityFeatures(); }, - deleteTerm: function() { + deleteTerm: function(e) { + e.preventDefault(); var options = { actionButtonName: "Delete", actionButtonClass: "btn btn-danger btn-ok",