From 64d61f7e349c13272fd81f1ce173153eb3881c95 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Thu, 18 Jul 2013 23:23:36 -0400 Subject: [PATCH 1/2] Feed back when tip changes --- www/assets/%version/gittip/tips.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/assets/%version/gittip/tips.js b/www/assets/%version/gittip/tips.js index 055eedf56a..8af078cadc 100644 --- a/www/assets/%version/gittip/tips.js +++ b/www/assets/%version/gittip/tips.js @@ -73,6 +73,10 @@ Gittip.tips.init = function() // change to old amount? alert('Sorry, something went wrong while changing your tip. :('); console.log.apply(console, arguments); + }) + .done(function() { + // Confirm that tip changed. + alert("Tip changed to $" + amount + "!"); }); }); From 34dec19eeb7c406b9e63e46e5638baf58f6395ac Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Thu, 18 Jul 2013 23:26:38 -0400 Subject: [PATCH 2/2] Use .success instead of .done where appropriate --- www/assets/%version/gittip/tips.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/assets/%version/gittip/tips.js b/www/assets/%version/gittip/tips.js index 8af078cadc..6889587261 100644 --- a/www/assets/%version/gittip/tips.js +++ b/www/assets/%version/gittip/tips.js @@ -74,7 +74,7 @@ Gittip.tips.init = function() alert('Sorry, something went wrong while changing your tip. :('); console.log.apply(console, arguments); }) - .done(function() { + .success(function() { // Confirm that tip changed. alert("Tip changed to $" + amount + "!"); });