Browse Source

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 năm trước cách đây
mục cha
commit
c5e793c98c
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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);