0
1
Fork 0

Bionic RC1

This commit is contained in:
Juan Ferrer Toribio 2015-07-30 23:00:46 +02:00
parent 2478c19fc2
commit 76334d1df5
2 changed files with 8 additions and 7 deletions

View File

@ -6,9 +6,7 @@ Vn.Login =
{ {
initialize: function () initialize: function ()
{ {
var hash = new Vn.Hash (); switch (Vn.Hash.get ('error'))
switch (hash.get ('error'))
{ {
case 'badLogin': case 'badLogin':
alert (_('InvalidLogin')); alert (_('InvalidLogin'));

View File

@ -109,14 +109,17 @@ Vn.Web =
{ {
if (location.host != res.get ('production_domain')) if (location.host != res.get ('production_domain'))
{ {
Vn.Node.setText ($('test-link'), _('ReturnToOldWebsite')); var linkText = 'ReturnToOldWebsite';
$('test-link').href = res.get ('production_domain'); var linkField = 'production_domain';
} }
else else
{ {
Vn.Node.setText ($('test-link'), _('TestTheNewWebsite')); var linkText = 'TestTheNewWebsite';
$('test-link').href = res.get ('test_domain'); var linkField = 'test_domain';
} }
Vn.Node.setText ($('test-link'), _(linkText));
$('test-link').href = '//'+ res.get (linkField);
} }
else else
Vn.Node.hide ($('test-link')); Vn.Node.hide ($('test-link'));