diff --git a/src/assets/js/bootmetro-charms.js b/src/assets/js/bootmetro-charms.js index ee490256..61283fd3 100644 --- a/src/assets/js/bootmetro-charms.js +++ b/src/assets/js/bootmetro-charms.js @@ -75,6 +75,14 @@ close: function(){ $(this.element).removeClass('in'); return false; + }, + + toggleSection: function(sectionId, width){ + if ($(this.element).hasClass('in')){ + this.close(); + }else{ + this.showSection(sectionId, width); + } }//, // // togglePin: function () {