Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
patricia.zylk committed Dec 17, 2013
1 parent 126e384 commit 4aab443
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 92 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 6 additions & 14 deletions META-INF/components/online-edition/zk-online-edition-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,12 @@
{
actionName: "onActionZKEditOnline",
fn: function ZK_onActionZKEditOnline(file) {

var webdavPath = "";
//if(navigator.userAgent.search("Firefox") >= 0){
var davProtocol = "dav";
if(window.location.protocol.indexOf("https") != -1){
davProtocol = "davs";
}
webdavPath = davProtocol+"://"+ window.location.host + "/alfresco"+ file.webdavUrl;
// }else {
// webdavPath = window.location.protocol+"//"+ window.location.host + "/alfresco"+ file.webdavUrl;
// }


var davProtocol = "dav";
if(window.location.protocol.indexOf("https") != -1){
davProtocol = "davs";
}
webdavPath = davProtocol+"://"+ window.location.host + "/alfresco"+ file.webdavUrl;
window.location = webdavPath;
}
});
})();
})();
56 changes: 0 additions & 56 deletions META-INF/share-config-custom.xml

This file was deleted.

1 change: 1 addition & 0 deletions alfresco/messages/zk-online-edition_eu.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zk.label.online.edition=Edit. Online
34 changes: 34 additions & 0 deletions alfresco/web-extension/zk-online-edition-config-custom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<alfresco-config>

<config evaluator="string-compare" condition="DocLibCustom">
<dependencies>
<js src="components/online-edition/zk-online-edition-actions.js" />
</dependencies>
</config>


<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="zk-online-edition" type="javascript"
label="zk.label.online.edition" icon="document-edit-online">
<param name="function">onActionZKEditOnline</param>
<permissions>
<permission allow="true">Write</permission>
</permissions>
<evaluator>zk.evaluator.doclib.action.onlineEditMimetype</evaluator>
</action>
</actions>

<actionGroups>
<actionGroup id="document-browse">
<action index="105" id="zk-online-edition" />
</actionGroup>
<actionGroup id="document-details">
<action index="105" id="zk-online-edition" />
</actionGroup>

</actionGroups>

</config>

</alfresco-config>
10 changes: 10 additions & 0 deletions org/springframework/extensions/surf/zk-online-edition-context.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@
</property>

</bean>

<bean id="zk-online-edition.config.bootstrap" class="org.springframework.extensions.config.ConfigBootstrap"
init-method="register" depends-on="webframework.configsource">
<property name="configService" ref="web.config" />
<property name="configs">
<list>
<value>classpath:alfresco/web-extension/zk-online-edition-config-custom.xml</value>
</list>
</property>
</bean>


</beans>

0 comments on commit 4aab443

Please sign in to comment.