Skip to content
Snippets Groups Projects
Commit 1224a20b authored by Jared Hancock's avatar Jared Hancock Committed by JediKev
Browse files

jQuery: Fix js requiring jQuery < 3.0 compatibility

parent 4febc785
No related branches found
No related tags found
No related merge requests found
......@@ -292,8 +292,6 @@
*/
;(function($) {
jQuery.event.props.push("dataTransfer");
var default_opts = {
fallback_id: '',
link: false,
......
......@@ -394,3 +394,7 @@ $(document).ajaxError(function(event, request, settings) {
__('Refresh the current page to restore and continue your draft.'));
}
});
// .size() is deprecated as of jQuery 1.8 and should move to .length, but
// the packed Redactor code uses the deprecated function
$.fn.size = function() { return this.length; }
......@@ -63,7 +63,7 @@ if(jQuery) (function($) {
function hideDropdowns(event) {
var targetGroup = event ? $(event.target).parents().andSelf() : null;
var targetGroup = event ? $(event.target).parents().addBack() : null;
if( targetGroup && targetGroup.is('.action-dropdown') && !targetGroup.is('a') ) return;
$('body')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment