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 ()
{
var hash = new Vn.Hash ();
switch (hash.get ('error'))
switch (Vn.Hash.get ('error'))
{
case 'badLogin':
alert (_('InvalidLogin'));

View File

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