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

Unified Diff: appengine/findit/templates/config.html

Issue 1866883002: [Findit] A huge refactoring and some bug fixing. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix nit. Created 4 years, 8 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 | « appengine/findit/templates/build_failure.html ('k') | appengine/findit/templates/home.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/templates/config.html
diff --git a/appengine/findit/templates/config.html b/appengine/findit/templates/config.html
index e0b7287598490d7e2f3bae6ae611696b1b8d5efc..2e2cee44ea667f1bcc649ff80ddeea6d15c03585 100644
--- a/appengine/findit/templates/config.html
+++ b/appengine/findit/templates/config.html
@@ -41,30 +41,24 @@
function createUrl(version) {
if (version)
- return '/config?version=' + version.toString();
+ return '/waterfall/config?version=' + version.toString();
else
- return '/config';
+ return '/waterfall/config';
}
function loadPrevious() {
- $.get('/config').done(function(){
- var newUrl = createUrl({{ version }} - 1);
- window.location.replace(newUrl);
- });
+ var newUrl = createUrl({{ version }} - 1);
+ window.location.replace(newUrl);
}
function loadNext() {
- $.get('/config').done(function(){
- var newUrl = createUrl({{ version }} + 1);
- window.location.replace(newUrl);
- });
+ var newUrl = createUrl({{ version }} + 1);
+ window.location.replace(newUrl);
}
function loadLatest() {
- $.get('/config').done(function(){
- var newUrl = createUrl(null);
- window.location.replace(newUrl);
- });
+ var newUrl = createUrl(null);
+ window.location.replace(newUrl);
}
function save(e) {
@@ -74,7 +68,7 @@
'try_job_settings': getJsonOfTextarea('try-job-settings'),
'swarming_settings': getJsonOfTextarea('swarming-settings')
};
- $.post('/config', { data: JSON.stringify(newConfig) }).done(function(){
+ $.post('/waterfall/config', { data: JSON.stringify(newConfig) }).done(function(){
window.location.replace(createUrl(null)); // Reload after successful saving.
}).fail(function(xhr){
// Replace the whole page with errors from server side.
« no previous file with comments | « appengine/findit/templates/build_failure.html ('k') | appengine/findit/templates/home.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698