- // triggered upon $(document).ready
- init_all_plugins: function() {
- $('.plugin-hide').each(function() {
- $(this).click(function () {
- var plugin='#'+this.id.replace('hide-','');
- var show='#'+this.id.replace('hide-','show-');
- $(plugin).slideUp(); $(show).show(); $(this).hide();});
- });
- $('.plugin-show').each(function() {
- $(this).click(function () {
- var plugin='#'+this.id.replace('show-','');
- var hide='#'+this.id.replace('show-','hide-');
- $(plugin).slideDown(); $(hide).show(); $(this).hide();});
- });
- $('.plugin-tooltip').each(function(){ $(this).tooltip({'selector':'','placement':'right'}); });
- },