right side panels

This commit is contained in:
Adam Bradley
2013-08-28 16:50:38 -05:00
parent d64381f903
commit da1e197905
6 changed files with 86 additions and 17 deletions

View File

@ -1,8 +1,14 @@
(function(window, document, ion) {
function click(e) {
if(e.target.dataset.togglePanel) {
ion.Panel.toggle(e.target.dataset.togglePanel);
if(e.target.dataset.panelToggle) {
var options = {
direction: (e.target.dataset.panelDirection === "right" ? "right" : "left")
};
ion.Panel.toggle(e.target.dataset.panelToggle, options);
e.preventDefault();
e.stopPropagation();
return false;