forked from verdnatura/hedera-web
28 lines
374 B
JavaScript
28 lines
374 B
JavaScript
|
|
Hedera.Visits = new Class
|
|
({
|
|
Extends: Hedera.Form
|
|
|
|
,activate: function ()
|
|
{
|
|
var hash = this.hash;
|
|
|
|
if (!hash.get ('to'))
|
|
{
|
|
hash.set ('from', new Date ());
|
|
hash.set ('to', new Date ());
|
|
}
|
|
}
|
|
|
|
,onRefreshClick: function ()
|
|
{
|
|
this.$('visits').refresh ();
|
|
}
|
|
|
|
,onSessionsClick: function ()
|
|
{
|
|
this.hash.setAll ({'form': 'admin/connections'});
|
|
}
|
|
});
|
|
|