From 126e3841f4f4839e868c81c002bee340bfdb6ebd Mon Sep 17 00:00:00 2001 From: "patricia.zylk" Date: Tue, 17 Dec 2013 15:03:20 +0000 Subject: [PATCH] --- .../metadata-templates/zk-online-edition.js | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100644 META-INF/metadata-templates/zk-online-edition.js diff --git a/META-INF/metadata-templates/zk-online-edition.js b/META-INF/metadata-templates/zk-online-edition.js deleted file mode 100644 index 97be26c..0000000 --- a/META-INF/metadata-templates/zk-online-edition.js +++ /dev/null @@ -1,40 +0,0 @@ -(function() -{ - /** - * Alfresco Slingshot aliases - */ - var $html = Alfresco.util.encodeHTML, - $isValueSet = Alfresco.util.isValueSet; - - if (Alfresco.DocumentList) - { - YAHOO.Bubbling.fire("registerRenderer", - { - propertyName: "OnlineEdition", - renderer: function content_renderer(record, label) - { - var appname = ""; - var webdavPath = ""; - var jsNode = record.jsNode, - properties = jsNode.properties, - html = ""; - - if(navigator.userAgent.search("Firefox") >= 0){ - var davProtocol = "dav"; - if(window.location.protocol.indexOf("https") != -1){ - davProtocol = "davs"; - } - webdavPath = davProtocol+"://"+ window.location.host + "/alfresco"+ record.webdavUrl; - }else { - webdavPath = window.location.protocol+"//"+ window.location.host + "/alfresco"+ record.webdavUrl; - } - - - html += ''+YAHOO.lang.substitute(this.msg("zk.label.online.edition"))+' '+YAHOO.lang.substitute(this.msg('; - - - return html; - } - }); - } -})(); \ No newline at end of file