Skip to content
This repository has been archived by the owner on May 15, 2022. It is now read-only.

Commit

Permalink
added toggleSection function in bootmetro-charms.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jayhjkwon committed Jun 7, 2013
1 parent 44d0b07 commit d1c2769
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/assets/js/bootmetro-charms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit d1c2769

Please sign in to comment.