From 329fd61bb1ce4efee93245d21ec13b6239d1214d Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 26 Feb 2018 10:49:35 +0100 Subject: [PATCH] Remove lag when creating a pad from the pad creation screen --- www/common/common-ui-elements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 27c583e08..2a892cae6 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1764,6 +1764,7 @@ define([ // Create the pad var create = function (template) { + $creationContainer.remove(); // Type of pad var ownedVal = parseInt($('input[name="cp-creation-owned"]:checked').val()); // Life time @@ -1784,7 +1785,6 @@ define([ expire: expireVal, template: template }, function () { - $creationContainer.remove(); cb(); }); };