Skip to content

Instantly share code, notes, and snippets.

@patches-76431
Last active December 28, 2015 07:49
Show Gist options
  • Select an option

  • Save patches-76431/7467452 to your computer and use it in GitHub Desktop.

Select an option

Save patches-76431/7467452 to your computer and use it in GitHub Desktop.
Patch to patch the patch for jquery ui supplied with drupal views module v3.5
diff --git a/js/jquery.ui.dialog.patch.js b/js/jquery.ui.dialog.patch.js
index d00e6ab..73d04ea 100644
--- a/js/jquery.ui.dialog.patch.js
+++ b/js/jquery.ui.dialog.patch.js
@@ -21,7 +21,9 @@
(function ($, undefined) {
if ($.ui && $.ui.dialog) {
+ if( $.ui.dialog.overlay ){
$.ui.dialog.overlay.events = $.map('focus,keydown,keypress'.split(','),
function(event) { return event + '.dialog-overlay'; }).join(' ');
+ }
}
}(jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment