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

28 lines
374 B
JavaScript
Raw Normal View History

2016-09-26 09:28:47 +00:00
Hedera.Visits = new Class
({
2016-09-26 09:28:47 +00:00
Extends: Hedera.Form
,activate: function ()
{
2017-04-07 11:00:33 +00:00
var hash = this.hash;
if (!hash.get ('to'))
{
hash.set ('from', new Date ());
hash.set ('to', new Date ());
}
}
,onRefreshClick: function ()
{
2015-12-10 23:24:14 +00:00
this.$('visits').refresh ();
}
,onSessionsClick: function ()
{
2017-04-05 14:06:07 +00:00
this.hash.setAll ({'form': 'admin/connections'});
}
});