From 2e106c666ee534be167dec5fbf03e5f99e5bf34a Mon Sep 17 00:00:00 2001 From: ozhozh Date: Wed, 31 Aug 2011 19:31:55 +0000 Subject: [PATCH] Toggle share boxes only on successful requests git-svn-id: http://yourls.googlecode.com/svn/trunk@684 12232710-3e20-11de-b438-597f59cd7555 --- js/insert.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/insert.js b/js/insert.js index 1076949..f7dc543 100644 --- a/js/insert.js +++ b/js/insert.js @@ -39,11 +39,10 @@ function add() { $('#nourl_found').css('display', 'none'); zebra_table(); increment(); + toggle_share_fill_boxes( data.url.url, data.shorturl, data.url.title ); } reset_url(); - toggle_share_fill_boxes( data.url.url, data.shorturl, data.url.title ); - end_loading("#add-button"); end_disable("#add-button"); -- 2.45.0