2015-01-23 13:09:30 +00:00
|
|
|
|
|
|
|
Vn.Users = new Class
|
|
|
|
({
|
|
|
|
Extends: Vn.Module
|
|
|
|
|
2015-03-27 19:10:49 +00:00
|
|
|
,onChangeUserClick: function (column, value)
|
2015-01-23 13:09:30 +00:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2015-03-27 19:10:49 +00:00
|
|
|
,onAccessLogClick: function (column, value)
|
2015-01-23 13:09:30 +00:00
|
|
|
{
|
|
|
|
this.hash.set ({
|
2015-02-01 03:21:54 +00:00
|
|
|
'form': 'admin/access-log'
|
2015-01-23 13:09:30 +00:00
|
|
|
,'user': value
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
,userChanged: function ()
|
|
|
|
{
|
2015-02-01 03:21:54 +00:00
|
|
|
this.hash.set ({'form': 'ecomerce/orders'});
|
2015-01-23 13:09:30 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|