diff --git a/assets/src/js/custom.js b/assets/src/js/custom.js index 07f31fb2f..1c5d32ade 100644 --- a/assets/src/js/custom.js +++ b/assets/src/js/custom.js @@ -35,7 +35,7 @@ $(document).ready(function () { }); } //if this isn't a link, prevent the page from being redirected - if (checkElement.is('.treeview-menu') && $(event.target).is('.pull-right-container')) { + if (checkElement.is('.treeview-menu') && $(e.target).is('.pull-right-container')) { e.preventDefault(); } }); diff --git a/package.json b/package.json index 9efc8814f..ea591fc85 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "moment": "^2.18.1", "numeral": "^2.0.6", "parsleyjs": "^2.7.2", - "select2": "^4.0.3", + "select2": "4.0.3", "select2-bootstrap-theme": "^0.1.0-beta.10", "signature_pad": "^2.1.1", "smartwizard": "^4.2.2",