telegram_bots/static/js/examples/examples.portlets.js
2019-01-11 22:16:02 +03:00

31 lines
510 B
JavaScript

/*
Name: UI Elements / Portlets - Examples
Written by: Okler Themes - (http://www.okler.net)
Theme Version: 2.1.1
*/
(function($) {
'use strict';
/*
Refresh page
*/
$('#portletRefresh').on('click', function(ev) {
ev.preventDefault();
window.location.reload();
});
/*
Restore to default
*/
$('#portletReset').on('click', function(ev) {
ev.preventDefault();
store.remove('__portletOrder');
store.remove('__portletState');
window.location.reload();
});
}).apply(this, [jQuery]);