0
1
Fork 0
hedera-web-mindshore/web/forms/admin/users/users.js

29 lines
509 B
JavaScript
Executable File

Vn.Users = new Class
({
Extends: Vn.Module
,onChangeUserClick: function (column, value)
{
var batch = new Sql.Batch ();
batch.addValue ('user', value);
var query = 'UPDATE user_session_view SET user_id = #user';
this.conn.execQuery (query, this.userChanged.bind (this), batch);
}
,onAccessLogClick: function (column, value)
{
this.hash.set ({
'form': 'admin/access-log'
,'user': value
});
}
,userChanged: function ()
{
this.hash.set ({'form': 'ecomerce/orders'});
}
});