diff --git a/capsule-prototype/js/online-script.js b/capsule-prototype/js/online-script.js index bb281d22147a7088cbae3e4383e2c950296c623f..bfaf378bb4933cc22460e88fcaa27ef29f479565 100644 --- a/capsule-prototype/js/online-script.js +++ b/capsule-prototype/js/online-script.js @@ -821,8 +821,8 @@ function fillPopupEdit(tag) { $("#popupEdit").attr("isPaused",isPaused);//.css("background",bgColor); $("#popupTC").css("background",tag.color); - /*$("#popupType").css("color",tag.color);*/ - + /*$("#popupType").css("color",tag.color);*/ + var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; // Opera 8.0+ (UA detection to detect Blink/v8-powered Opera) var isFirefox = typeof InstallTrigger !== 'undefined'; // Firefox 1.0+ var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0; // At least Safari 3+: "[object HTMLElementConstructor]" @@ -836,27 +836,26 @@ function fillPopupEdit(tag) { else if((isSafari)||(isChrome)) bgColorLeft = "-webkit-linear-gradient(right bottom, rgba(20,46,51,1) 0%, "+tag.color+" 100%)"; $("#popupLeft").css("background",bgColorLeft); - + if(tag.isMarker()==true){ $("#popupImg").show(); - $("#popupImg").attr("src","css/images/img-note.png"); + $("#popupImg").attr("src","../shared/css/images/img-note.png"); $("#popupImg").unbind( "click" ); } else { if(tag.thumbnail.url){ - $("#popupImg").attr("src",tag.thumbnail.url); - + $("#popupImg").attr("src",tag.thumbnail.url); } else { var type = tag.getMetadata("Rekall->Type"); //alert(type); - if(type.indexOf("image") > -1) $("#popupImg").attr("src","css/images/img-image.png"); //alert("image"); - else if(type.indexOf("pdf") > -1) $("#popupImg").attr("src","css/images/img-pdf.png"); //alert("pdf"); - else if(type.indexOf("audio") > -1) $("#popupImg").attr("src","css/images/img-music.png"); //alert("son"); - else if(type.indexOf("vcard") > -1) $("#popupImg").attr("src","css/images/img-user.png"); //alert("user"); - else if(type.indexOf("video") > -1) $("#popupImg").attr("src","css/images/img-video.png"); //alert("video"); - else if(type.indexOf("msword") > -1) $("#popupImg").attr("src","css/images/img-word.png"); //alert("word"); - else if(type.indexOf("link") > -1) $("#popupImg").attr("src","css/images/img-link.png"); //alert("son"); - else $("#popupImg").attr("src","css/images/img-document.png"); //alert(type); + if(type.indexOf("image") > -1) $("#popupImg").attr("src","../shared/css/images/img-image.png"); //alert("image"); + else if(type.indexOf("pdf") > -1) $("#popupImg").attr("src","../shared/css/images/img-pdf.png"); //alert("pdf"); + else if(type.indexOf("audio") > -1) $("#popupImg").attr("src","../shared/css/images/img-music.png"); //alert("son"); + else if(type.indexOf("vcard") > -1) $("#popupImg").attr("src","../shared/css/images/img-user.png"); //alert("user"); + else if(type.indexOf("video") > -1) $("#popupImg").attr("src","../shared/css/images/img-video.png"); //alert("video"); + else if(type.indexOf("msword") > -1) $("#popupImg").attr("src","../shared/css/images/img-word.png"); //alert("word"); + else if(type.indexOf("link") > -1) $("#popupImg").attr("src","../shared/css/images/img-link.png"); //alert("son"); + else $("#popupImg").attr("src","../shared/css/images/img-document.png"); //alert(type); } $("#popupImg").unbind( "click" ); $("#popupImg").click(function(event){