telegram_bots/static/js/examples/examples.portlets.js

31 lines
510 B
JavaScript
Raw Normal View History

2019-01-11 19:16:01 +00:00
/*
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]);