diff --git a/js/filedrop.field.js b/js/filedrop.field.js index b0bc57f15c0df300cd6a3bd1d9fce26d8d8440f5..42b94e70fb3fb9add7f20417feaea2041e097436 100644 --- a/js/filedrop.field.js +++ b/js/filedrop.field.js @@ -292,8 +292,6 @@ */ ;(function($) { - jQuery.event.props.push("dataTransfer"); - var default_opts = { fallback_id: '', link: false, diff --git a/js/redactor-osticket.js b/js/redactor-osticket.js index 65491ea10eef0a51c6b5b74428ddc108f783da03..90db4d3adf1cb245b49423a386449c2e67b73fdb 100644 --- a/js/redactor-osticket.js +++ b/js/redactor-osticket.js @@ -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; } diff --git a/scp/js/jquery.dropdown.js b/scp/js/jquery.dropdown.js index 84a843dfd0e120660bfa1a3376a94d1c5ebb46f0..aba3947ad071f46438a4436a2be54490db8edb27 100644 --- a/scp/js/jquery.dropdown.js +++ b/scp/js/jquery.dropdown.js @@ -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')