Vn.Users = new Class ({ Extends: Vn.Form ,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'}); } });