Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: dashboard/dashboard/static/uri.html

Issue 2619883003: More structure for speed releasing. (Closed)
Patch Set: response to comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dashboard/dashboard/speed_releasing_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
};
})();
« no previous file with comments | « dashboard/dashboard/speed_releasing_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698