Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var panels = $('.user-infos');
- var panelsButton = $('.dropdown-user');
- panels.hide();
- //Click dropdown
- panelsButton.click(function() {
- //get data-for attribute
- var dataFor = $(this).attr('data-for');
- var idFor = $(dataFor);
- //current button
- var currentButton = $(this);
- idFor.slideToggle(400, function() {
- //Completed slidetoggle
- if(idFor.is(':visible'))
- {
- currentButton.html('<i class="glyphicon glyphicon-chevron-down"></i>');
- }
- else
- {
- currentButton.html('<i class="glyphicon glyphicon-chevron-down"></i>');
- }
- });
- });
- $('[data-toggle="tooltip"]').tooltip();
- $('button').click(function(e) {
- e.preventDefault();
- });
- });
- /* kommentar*/
- $(document).ready(function(){
- $("[data-toggle=tooltip]").tooltip();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement