diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-03-25 15:18:29 +0600 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-03-25 15:18:47 +0600 |
commit | 1c3cbb0af1a1294d2d3c672ee35f10008bee2ac7 (patch) | |
tree | 64cc0dff86514008bf4f45cdb54b68639b316fa7 /sonar-server/src/main/js/select2-jquery-ui-fix.js | |
parent | 6349cd3b899f37567637c78187f73071c1f64e3c (diff) | |
download | sonarqube-1c3cbb0af1a1294d2d3c672ee35f10008bee2ac7.tar.gz sonarqube-1c3cbb0af1a1294d2d3c672ee35f10008bee2ac7.zip |
Move source outside from webapp
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.js | 9 |
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); |