From 926546106ef2fb35359278b9f08798310e81d8fa Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 17 Dec 2016 15:45:38 -0800 Subject: add loading indicator to post buttons fixes #42 --- views/new-favorite.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'views/new-favorite.php') diff --git a/views/new-favorite.php b/views/new-favorite.php index 3231ab2..9977d69 100644 --- a/views/new-favorite.php +++ b/views/new-favorite.php @@ -1,7 +1,7 @@
-
+
@@ -38,6 +38,7 @@ $(function(){ } $("#btn_post").click(function(){ + $("#btn_post").addClass("loading disabled").text("Working..."); var syndications = []; $("#syndication-container button.btn-info").each(function(i,btn){ @@ -61,6 +62,7 @@ $(function(){ } else { $("#test_success").addClass('hidden'); $("#test_error").removeClass('hidden'); + $("#btn_post").removeClass("loading disabled").text("Post"); } }); -- cgit v1.2.3