initial commit
This commit is contained in:
31
static/js/examples/examples.portlets.js
Normal file
31
static/js/examples/examples.portlets.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
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]);
|
Reference in New Issue
Block a user