hedera-web/web/forms/admin/users/users.js

29 lines
509 B
JavaScript
Raw Normal View History

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 ({
2015-02-01 03:21:54 +00:00
'form': 'admin/access-log'
,'user': value
});
}
,userChanged: function ()
{
2015-02-01 03:21:54 +00:00
this.hash.set ({'form': 'ecomerce/orders'});
}
});