فهرست منبع

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 سال پیش
والد
کامیت
c5e793c98c
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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);