From 9a3d013be177148898ae9826f225a2d048c863fa Mon Sep 17 00:00:00 2001 From: Arctic Code Date: Tue, 8 Oct 2013 17:50:40 -0500 Subject: [PATCH] Speed up the fade transition on the status box While it looks kinda nice, some people might not apprecieate that it takes so much time for the page to pop up and it looks like the page froze or something. --- assets/js/unps.core.js | 2 +- index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/unps.core.js b/assets/js/unps.core.js index 90347ef..6466ad6 100644 --- a/assets/js/unps.core.js +++ b/assets/js/unps.core.js @@ -4,7 +4,7 @@ jQuery(document).ready(function(){ $("#report-details").slideUp("fast"); $('#link').focus(); - $('#error').fadeIn("slow"); + $('#error').fadeIn("fast"); $('textarea').autoResize(); $('#shortlab').addClass('fbtn'); }); diff --git a/index.php b/index.php index 3e6f038..5ee63be 100644 --- a/index.php +++ b/index.php @@ -106,7 +106,7 @@ event.preventDefault(); event.stopPropagation(); $.post("process.php?token=", $(this).serialize(), function(data){ - $("#message").hide().html(data).fadeIn("slow"); + $("#message").hide().html(data).fadeIn("fast"); if($('#error').length){ $('#short-button').removeClass('btn-primary'); $('#short-button').removeClass('btn-success');