Przeglądaj źródła

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

Aaron Newton 15 lat temu
rodzic
commit
c5e793c98c

+ 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);