summaryrefslogtreecommitdiff
path: root/views/new-favorite.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2017-02-27 12:38:02 -0800
committerAaron Parecki <aaron@parecki.com>2017-02-27 12:38:02 -0800
commit793199ad4efd02f3e95e7fbb0f5af6ee7833b844 (patch)
treedde2020209339ed93afe1dcfe9a4d2219e1b89bc /views/new-favorite.php
parent1123ed958f7c22116a0c432779aaf1c27fcaf787 (diff)
show error messages when editing favorites
Diffstat (limited to 'views/new-favorite.php')
-rw-r--r--views/new-favorite.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/views/new-favorite.php b/views/new-favorite.php
index 524bb79..72de412 100644
--- a/views/new-favorite.php
+++ b/views/new-favorite.php
@@ -32,7 +32,7 @@
$(function(){
$("#btn_post").click(function(){
- $("#btn_post").addClass("loading disabled").text("Working...");
+ $("#btn_post").addClass("loading disabled");
var syndications = [];
$("#syndication-container button.btn-info").each(function(i,btn){
@@ -53,7 +53,10 @@ $(function(){
} else {
$("#test_success").addClass('hidden');
$("#test_error").removeClass('hidden');
- $("#btn_post").removeClass("loading disabled").text("Post");
+ if(response.error_details) {
+ $("#test_error").text(response.error_details);
+ }
+ $("#btn_post").removeClass("loading disabled");
}
});