aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/js/select2-jquery-ui-fix.js
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-server/src/main/js/select2-jquery-ui-fix.js')
-rw-r--r--sonar-server/src/main/js/select2-jquery-ui-fix.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/sonar-server/src/main/js/select2-jquery-ui-fix.js b/sonar-server/src/main/js/select2-jquery-ui-fix.js
new file mode 100644
index 00000000000..edaa4899a82
--- /dev/null
+++ b/sonar-server/src/main/js/select2-jquery-ui-fix.js
@@ -0,0 +1,9 @@
+/* https://github.com/ivaynberg/select2/issues/1246 */
+
+;(function($) {
+
+ $.ui.dialog.prototype._allowInteraction = function(e) {
+ return !!$(e.target).closest('.ui-dialog, .ui-datepicker, .select2-drop').length;
+ };
+
+})(jQuery);