Login bug solved (history.back)
This commit is contained in:
parent
e5d2bbc2f2
commit
f20e2d65c3
|
@ -1,4 +1,4 @@
|
||||||
hedera-web (1.405.64) stable; urgency=low
|
hedera-web (1.405.65) stable; urgency=low
|
||||||
|
|
||||||
* Initial Release.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -43,12 +43,15 @@ module.exports = new Class
|
||||||
{
|
{
|
||||||
this._freeLogin ();
|
this._freeLogin ();
|
||||||
|
|
||||||
|
if (this._gui)
|
||||||
|
return;
|
||||||
|
|
||||||
var gui = this._gui = new Gui ({conn: this._conn});
|
var gui = this._gui = new Gui ({conn: this._conn});
|
||||||
gui.on ('logout', this._onLogout, this);
|
gui.on ('logout', this._onLogout, this);
|
||||||
gui.show ();
|
gui.show ();
|
||||||
}
|
}
|
||||||
|
|
||||||
,_onLogout: function (gui)
|
,_onLogout: function ()
|
||||||
{
|
{
|
||||||
this.clearAutoLogin ();
|
this.clearAutoLogin ();
|
||||||
this._freeGui ();
|
this._freeGui ();
|
||||||
|
@ -100,7 +103,7 @@ module.exports = new Class
|
||||||
this._gui.logout ();
|
this._gui.logout ();
|
||||||
}
|
}
|
||||||
|
|
||||||
,_newVersion: function (error)
|
,_newVersion: function ()
|
||||||
{
|
{
|
||||||
if (this.ignoreVersion)
|
if (this.ignoreVersion)
|
||||||
return;
|
return;
|
||||||
|
@ -126,10 +129,10 @@ module.exports = new Class
|
||||||
Htk.Toast.showError (_('Something went wrong'));
|
Htk.Toast.showError (_('Something went wrong'));
|
||||||
|
|
||||||
var params = {
|
var params = {
|
||||||
'file': error.fileName
|
file: error.fileName
|
||||||
,'line': error.lineNumber
|
,line: error.lineNumber
|
||||||
,'message': error.message
|
,message: error.message
|
||||||
,'stack': error.stack
|
,stack: error.stack
|
||||||
};
|
};
|
||||||
this._conn.send ('core/log', params);
|
this._conn.send ('core/log', params);
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ module.exports = new Class
|
||||||
this.$('spinner').stop ();
|
this.$('spinner').stop ();
|
||||||
}
|
}
|
||||||
|
|
||||||
,show: function (firstLogin)
|
,show: function ()
|
||||||
{
|
{
|
||||||
document.body.appendChild (this.node);
|
document.body.appendChild (this.node);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hedera-web",
|
"name": "hedera-web",
|
||||||
"version": "1.405.64",
|
"version": "1.405.65",
|
||||||
"description": "Verdnatura web page",
|
"description": "Verdnatura web page",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Reference in New Issue