Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

If an element ('view') is visible already, the files_and_folders view…

… will be shown.
  • Loading branch information...
commit 4a5f269f352265901029928ef52cfd1e32835c40 1 parent 9a3295c
@mischa78 mischa78 authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 public/javascripts/application.js
View
6 public/javascripts/application.js
@@ -13,19 +13,21 @@ function fadeout(element)
function show_element(element)
{
+ if($(element).visible()) { element = 'files_and_folders'; }
+
elements = ['files_and_folders', 'permissions', 'clipboard'];
elements.splice(elements.indexOf(element), 1);
elements.each(function(e) {
if($(e) != undefined && $(e).visible()) { Effect.BlindUp(e, { duration: 0.5 }); }
- })
+ });
Effect.BlindDown(element, { delay: 0.5, duration: 0.5 });
if($('show_' + element + '_link') != undefined) { $('show_' + element + '_link').className = 'highlight'; }
elements.each(function(e) {
if($('show_' + e + '_link') != undefined) { $('show_' + e + '_link').className = 'folder_menu'; }
- })
+ });
}
function update_counter(element, counter)
Please sign in to comment.
Something went wrong with that request. Please try again.