Yoji SHIDARA
null+****@clear*****
Wed Nov 7 11:31:56 JST 2012
Yoji SHIDARA 2012-11-07 11:31:56 +0900 (Wed, 07 Nov 2012) New Revision: cb9588e41ae4fbd9e9f84cfb0d3b0ba71a6318ec https://github.com/groonga/gcs-console/commit/cb9588e41ae4fbd9e9f84cfb0d3b0ba71a6318ec Log: Redirect back to index_fields tab Modified files: routes/index.js test/index-fields.test.js Modified: routes/index.js (+1 -1) =================================================================== --- routes/index.js 2012-11-06 16:53:37 +0900 (33ea839) +++ routes/index.js 2012-11-07 11:31:56 +0900 (8e1e620) @@ -222,7 +222,7 @@ exports.domainCreateIndexField = function(req, res) { return; } req.flash('info', 'IndexField successfully created'); - res.redirect('/domain/' + req.domain.DomainName); + res.redirect('/domain/' + req.domain.DomainName + '/index_fields'); }); }); }; Modified: test/index-fields.test.js (+1 -0) =================================================================== --- test/index-fields.test.js 2012-11-06 16:53:37 +0900 (dc4daf9) +++ test/index-fields.test.js 2012-11-07 11:31:56 +0900 (8a60b2f) @@ -33,6 +33,7 @@ suite('dashboard', function() { return browser.pressButton('Create') }) .then(function() { + assert.equal(browser.location.pathname, "/domain/test/index_fields"); assert.equal(browser.text(".alert"), "IndexField successfully created"); }) .then(done, done); -------------- next part -------------- HTML����������������������������...Download