| Index: dashboard/dashboard/static/uri.html
|
| diff --git a/dashboard/dashboard/static/uri.html b/dashboard/dashboard/static/uri.html
|
| index 3cc437b05244b15e8edbb2905f533c9284f40ab3..5da94b8531bfbb2632fa663d4f6835f1cb82cc50 100644
|
| --- a/dashboard/dashboard/static/uri.html
|
| +++ b/dashboard/dashboard/static/uri.html
|
| @@ -264,12 +264,22 @@ var uri = (function() {
|
| return window.location.pathname + '?' + pairs.join('&');
|
| };
|
|
|
| + /**
|
| + * Gets the second argument after the .com/.
|
| + * @return {string} second path element.
|
| + */
|
| + var getPathName = function() {
|
| + return window.location.pathname.split('/')[2];
|
| + };
|
| +
|
| +
|
| return {
|
| Controller: Controller,
|
| getParameter: getParameter,
|
| getAllParameters: getAllParameters,
|
| getCurrentPathWithParams: getCurrentPathWithParams,
|
| - getQueryString: getQueryString
|
| + getQueryString: getQueryString,
|
| + getPathName: getPathName,
|
| };
|
| })();
|
|
|
|
|