From 58ce9ba920358fc31154b35696216f2ebc5783e0 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Thu, 24 Oct 2013 19:44:36 +0300 Subject: [PATCH] Speed up animation. Ref #81 --- js/documents.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/documents.js b/js/documents.js index 636a7ada..3b4d673c 100644 --- a/js/documents.js +++ b/js/documents.js @@ -52,11 +52,11 @@ var documentsMain = { }, showOverlay : function(){ - $('#documents-overlay,#documents-overlay-below').fadeIn('slow'); + $('#documents-overlay,#documents-overlay-below').fadeIn('fast'); }, hideOverlay : function(){ - $('#documents-overlay,#documents-overlay-below').fadeOut('slow'); + $('#documents-overlay,#documents-overlay-below').fadeOut('fast'); }, showEditor : function(title, canShare){ @@ -75,12 +75,12 @@ var documentsMain = { hideEditor : function(){ // Fade out toolbar - $('#odf-toolbar').fadeOut('slow'); + $('#odf-toolbar').fadeOut('fast'); // Fade out editor - $('#mainContainer').fadeOut('slow', function() { + $('#mainContainer').fadeOut('fast', function() { $('#mainContainer').remove(); $('#odf-toolbar').remove(); - $('#content').fadeIn('slow'); + $('#content').fadeIn('fast'); $(document.body).removeClass('claro'); $('title').text(documentsMain.UI.mainTitle); }); @@ -156,7 +156,7 @@ var documentsMain = { require({ }, ["webodf/editor/server/owncloud/ServerFactory", "webodf/editor/Editor"], function (ServerFactory, Editor) { // fade out file list and show WebODF canvas - $('#content').fadeOut('slow').promise().done(function() { + $('#content').fadeOut('fast').promise().done(function() { documentsMain.UI.showEditor( documentsMain.getNameByFileid(response.file_id),