From 555d936ac498dc06fb1a80beb649f8d8a00d61f0 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Wed, 15 Nov 2017 15:26:54 +0100 Subject: [PATCH] Risoluzione di alcuni bug JS --- assets/src/js/custom.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",