Explorar o código

HUE-261. When checking an element for draggability in the JBrowser header, ensure it's extended (IE can't extend embed tags).

Aaron Newton %!s(int64=15) %!d(string=hai) anos
pai
achega
c5e793c98c
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      desktop/core/static/js/Source/CCS/CCS.JBrowser.js

+ 2 - 1
desktop/core/static/js/Source/CCS/CCS.JBrowser.js

@@ -172,7 +172,8 @@ script: CCS.JBrowser.js
 				events: {
 					mousedown: function(e){
 						//prevent clicks to the toolbar element from starting the drag behavior attached to the entire header
-						if (!$(e.target).match('.draggable') && !$(e.target).getParent('.draggable')) e.stopPropagation();
+						//note that OBJECT tags in IE won't give you a .match method - they aren't extended
+						if ($(e.target).match && !$(e.target).match('.draggable') && !$(e.target).getParent('.draggable')) e.stopPropagation();
 					}
 				}
 			}).inject(this.header);