From c2fdc0a8f979ef3c617f0b39451438c7838dca74 Mon Sep 17 00:00:00 2001
From: Jared Hancock <gravydish@gmail.com>
Date: Mon, 11 Feb 2019 21:01:50 -0600
Subject: [PATCH] jQuery: Fix default slow appearance of .show()

With the patch introduced to fix the `afterShow` event for jQuery three,
this appear sort of slowly be default. This addresses the issue by providing
a default of 0ms to show things, so they show immediately.
---
 scp/js/scp.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scp/js/scp.js b/scp/js/scp.js
index 78574c233..5a79f0434 100644
--- a/scp/js/scp.js
+++ b/scp/js/scp.js
@@ -1308,7 +1308,7 @@ jQuery(function($) {
     $.fn.show = function() {
         var argsArray = Array.prototype.slice.call(arguments),
             arg = argsArray[0],
-            options = {};
+            options = argsArray[1] || {duration: 0};
         if (typeof(arg) === 'number')
             options.duration = arg;
         else
-- 
GitLab