| 1 | 2 | simandl | $(document).ready(function(){ |
| 2 | | | $('.btn-toggle').click(function() { |
| 3 | | | $(this).find('.btn').toggleClass('active'); |
| 4 | | | |
| 5 | | | if ($(this).find('.btn-primary').size()>0) { |
| 6 | | | $(this).find('.btn').toggleClass('btn-primary'); |
| 7 | | | } |
| 8 | | | if ($(this).find('.btn-danger').size()>0) { |
| 9 | | | $(this).find('.btn').toggleClass('btn-danger'); |
| 10 | | | } |
| 11 | | | if ($(this).find('.btn-success').size()>0) { |
| 12 | | | $(this).find('.btn').toggleClass('btn-success'); |
| 13 | | | } |
| 14 | | | if ($(this).find('.btn-info').size()>0) { |
| 15 | | | $(this).find('.btn').toggleClass('btn-info'); |
| 16 | | | } |
| 17 | | | |
| 18 | | | $(this).find('.btn').toggleClass('btn-default'); |
| 19 | | | return false; |
| 20 | | | }); |
| 21 | | | }); |