Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

Commit

Permalink
Fixed link click behavior for term edit and delete
Browse files Browse the repository at this point in the history
  • Loading branch information
George Schneeloch committed Oct 22, 2015
1 parent e58eab5 commit bd66c9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/static/ui/js/manage_taxonomies.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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",
Expand Down

0 comments on commit bd66c9e

Please sign in to comment.