From 125141a0c6762e25f22464f741914a7404ae6dd8 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 11 May 2011 17:20:24 -0700 Subject: [PATCH] Make the effects for adding/removing invites less jerky --- plugins/DomainWhitelist/js/whitelistinvite.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/DomainWhitelist/js/whitelistinvite.js b/plugins/DomainWhitelist/js/whitelistinvite.js index 2038a93f33..01e493fa6a 100644 --- a/plugins/DomainWhitelist/js/whitelistinvite.js +++ b/plugins/DomainWhitelist/js/whitelistinvite.js @@ -24,8 +24,9 @@ SN_WHITELIST.resetRow = function(row) { SN_WHITELIST.addRow = function() { var row = $(this).closest("li"); var newRow = row.clone(); + $(row).find('a.add_row').hide(); SN_WHITELIST.resetRow(newRow); - $(newRow).insertAfter(row).show("blind", "slow", function() { + $(newRow).insertAfter(row).show("blind", "fast", function() { SN_WHITELIST.updateButtons(); }); }; @@ -37,7 +38,7 @@ SN_WHITELIST.removeRow = function() { buttons : { "Confirm" : function() { $(this).dialog("close"); - $(that).closest("li").hide("blind", "slow", function() { + $(that).closest("li").hide("blind", "fast", function() { $(this).remove(); SN_WHITELIST.updateButtons(); }); @@ -51,7 +52,7 @@ SN_WHITELIST.removeRow = function() { if ($(this).closest('li').find(':input[name^=username]').val()) { $("#confirm-dialog").dialog("open"); } else { - $(that).closest("li").hide("blind", "slow", function() { + $(that).closest("li").hide("blind", "fast", function() { $(this).remove(); SN_WHITELIST.updateButtons(); }); -- 2.39.5