--- /dev/null
+/**
+ * Fonctions et variables globales
+ */
+
+// Fix for IE __flash__removeCallback error
+jQuery(window).bind('beforeunload', function(){
+ jQuery("embed").remove();
+});
+
+if(typeof(isIE) != undefined){
+ isIE = undefined;
+}
+var isIE = Ext.isIE;
+
+if(typeof(main_container_blog) != undefined){
+ main_container_blog = undefined;
+}
+var main_container_blog = null;
+
+if(typeof(showMenuAttachment) != undefined){
+ showMenuAttachment = undefined;
+}
+var showMenuAttachment = function(href, fileId, fileName, extension, fileSize, itemId, objectId, urlSignet){
+ var coordMenu = getPosition(document.getElementById(objectId));
+ coordMenu[1] = coordMenu[1] - main_container_blog.itemGridPanel.getView().scroller.dom.scrollTop;
+
+ main_container_blog.coordAttachMenu = coordMenu;
+ var attachment = {};
+ attachment.href = href;
+ attachment.id = fileId;
+ attachment.name = fileName;
+ attachment.extension = extension;
+ attachment.fileSize = fileSize;
+ attachment.itemId = itemId;
+ attachment.urlSignet = urlSignet;
+ main_container_blog.showAttachClicMenu(attachment);
+};
\ No newline at end of file