--- webfm.js 2008-04-08 08:28:14.000000000 +0200 +++ webfm.js.filelink 2008-04-18 14:59:08.000000000 +0200 @@ -168,10 +168,14 @@ */ Webfm.browserDetect = function() { this.isIE = false; + this.isOP = false; var b = navigator.userAgent.toLowerCase(); if (b.indexOf("msie") >= 0) { this.isIE = true; } + if (b.indexOf("opera") >= 0) { + this.isOP = true; + } } /** @@ -1110,10 +1114,13 @@ var elTd = Webfm.ce('td'); this.clickObj = Webfm.ce('a'); this.clickObj.setAttribute('href', '#'); - if((typeof fileObj.id == "undefined") || fileObj.id == 0) + if((typeof fileObj.id == "undefined") || fileObj.id == 0) { this.clickObj.setAttribute('title', this.filepath); - else + } else { + if (Webfm.browser.isOP) + this.clickObj.setAttribute('href', getBaseUrl() + "\/webfm_send\/" + fileObj.id ); this.clickObj.setAttribute('title', fileObj.id); + } if(this.ftitle) this.clickObj.appendChild(Webfm.ctn(fileObj.ftitle)); else @@ -3664,6 +3671,8 @@ Webfm.dbgObj.dbg("clip:", s); if( window.clipboardData && clipboardData.setData ) { clipboardData.setData("Text", s); + } else if (Webfm.browser.isOP) { + alert("Clipboard function not supported in Opera. Copy link address from context menu."); } else if (window.netscape) { // You have to sign the code to enable this or allow the action in about:config by changing // user_pref("signed.applets.codebase_principal_support", true);