summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-04-30 17:42:35 +0200
committerVincent Petry <pvince81@owncloud.com>2014-05-30 10:06:29 +0200
commit6ebc43650554f41eee2ae715b99a178b9c75c532 (patch)
tree8b1f0a76ec2b3281bbc6608d69f609ff79aff3ef /core/js
parentdbbb6c5945f9c4d73695fa210be88d35ff35f026 (diff)
downloadnextcloud-server-6ebc43650554f41eee2ae715b99a178b9c75c532.tar.gz
nextcloud-server-6ebc43650554f41eee2ae715b99a178b9c75c532.zip
Added sharing overview page (WIP)
- added sharing overview entries in the sidebar - use OCS Share API to get the list of files
Diffstat (limited to 'core/js')
-rw-r--r--core/js/js.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 3c3efc469bf..44b0a1a39af 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -211,7 +211,16 @@ var OC={
linkToRemote:function(service) {
return window.location.protocol + '//' + window.location.host + OC.linkToRemoteBase(service);
},
-
+
+ /**
+ * Gets the base path for the given OCS API service.
+ * @param {string} service name
+ * @return {string} OCS API base path
+ */
+ linkToOCS: function(service) {
+ return window.location.protocol + '//' + window.location.host + OC.webroot + '/ocs/v1.php/' + service + '/';
+ },
+
/**
* Generates the absolute url for the given relative url, which can contain parameters.
* @param {string} url