Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2014-03-06 18:10:32 +0400
committerMorris Jobke <morris.jobke@gmail.com>2014-03-06 18:10:32 +0400
commit256dca935bbd683515912f555cee90f8cc43b341 (patch)
treef6e28f75df0e54292891186aba326dfcf27d26f7 /core
parent5f0a22586f7b912694df268776e97e3cff5d659d (diff)
Revert "adding new javascript function OC.generateUrl(url, params)"
This reverts commit 8e667d1934d6bd9b4344ac624fdd2846c89abb0a.
Diffstat (limited to 'core')
-rw-r--r--core/js/js.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 279a5390a88..77aadd23e03 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -175,30 +175,6 @@ var OC={
appswebroots:(typeof oc_appswebroots !== 'undefined') ? oc_appswebroots:false,
currentUser:(typeof oc_current_user!=='undefined')?oc_current_user:false,
coreApps:['', 'admin','log','search','settings','core','3rdparty'],
-
- /**
- * Generates the absolute url for the given relative url, which can contain parameters.
- *
- * @returns {string}
- * @param {string} url
- * @param params
- */
- generateUrl: function(url, params) {
- var _build = function (text, vars) {
- return text.replace(/{([^{}]*)}/g,
- function (a, b) {
- var r = vars[b];
- return typeof r === 'string' || typeof r === 'number' ? r : a;
- }
- );
- };
- if (url.charAt(0) !== '/') {
- url = '/' + url;
-
- }
- return OC.webroot + '/index.php' + _build(url, params);
- },
-
/**
* get an absolute url to a file in an appen
* @param app the id of the app the file belongs to