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

Commit

Permalink
Merge pull request #100 from RayKwon/master
Browse files Browse the repository at this point in the history
Added toggleSection function in bootmetro-charms.js
  • Loading branch information
aozora committed Jun 10, 2013
2 parents 44d0b07 + d1c2769 commit 2c133d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/assets/js/bootmetro-charms.js
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 2c133d4

Please sign in to comment.