Commit b00b8041df33c1c5e7a1453652ef0caff5d2faa9

Authored by Daniela Feitosa
2 parents b63031a6 7b0a37ef

Merge commit 'refs/merge-requests/83' of git://gitorious.org/noosfero/noosfero i…

…nto merge-requests/83
Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
public/javascripts/application.js
... ... @@ -255,7 +255,7 @@ function toggleSubmenu(trigger, title, link_list) {
255 255 if (!hide) {
256 256 var direction = 'down';
257 257 if (submenu.hasClass('up')) direction = 'up';
258   - submenu.show('slide', { 'direction' : direction }, 'slow');
  258 + jQuery(submenu).fadeIn();
259 259 }
260 260 }
261 261 return false;
... ... @@ -283,18 +283,18 @@ function toggleSubmenu(trigger, title, link_list) {
283 283 content.append(list);
284 284 submenu.append(header).append(content).append(footer);
285 285 jQuery(trigger).before(submenu);
286   - submenu.show('slide', { 'direction' : direction }, 'slow');
  286 + jQuery(submenu).fadeIn();
287 287 }
288 288  
289 289 function toggleMenu(trigger) {
290 290 hideAllSubmenus();
291   - jQuery(trigger).siblings('.simplemenu-submenu').toggle('slide', {direction: 'up'}, 'slow').toggleClass('opened');
  291 + jQuery(trigger).siblings('.simplemenu-submenu').toggle().toggleClass('opened');
292 292 }
293 293  
294 294 function hideAllSubmenus() {
295   - jQuery('.menu-submenu.up:visible').hide('slide', { 'direction' : 'up' }, 'slow');
296   - jQuery('.simplemenu-submenu:visible').hide('slide', { 'direction' : 'up' }, 'slow').toggleClass('opened');
297   - jQuery('.menu-submenu.down:visible').hide('slide', { 'direction' : 'down' }, 'slow');
  295 + jQuery('.menu-submenu.up:visible').fadeOut('slow');
  296 + jQuery('.simplemenu-submenu:visible').hide().toggleClass('opened');
  297 + jQuery('.menu-submenu.down:visible').fadeOut('slow');
298 298 jQuery('#chat-online-users-content').hide();
299 299 }
300 300  
... ...