diff --git a/app/views/internal/articles/_article_script.html.erb b/app/views/internal/articles/_article_script.html.erb
index cf4819672..1cbd5fbb3 100644
--- a/app/views/internal/articles/_article_script.html.erb
+++ b/app/views/internal/articles/_article_script.html.erb
@@ -18,7 +18,6 @@
url: $(this).attr('action'), //sumbits it to the given url of the form
data: valuesToSubmit,
}).success(function (json) {
- console.log("success")
form.parents(".card").addClass("highlighted-bg")
form.parents(".card").addClass("highlighted-border")
setTimeout(function () {
@@ -31,6 +30,18 @@
$('.card').on("submit", "form", submitForms)
$('.buffer-area').on("submit", "form", submitForms)
+ function tagSuggestedTweet(event) {
+ var updateId = $(this).data("id");
+ var updateElement = $(`#suggested-tweet-${updateId}`)
+ if (event.target.classList.contains('buffer-confirm')) {
+ updateElement.find('.card-header h2').append('Confirm')
+ } else if (event.target.classList.contains('buffer-dismiss')) {
+ updateElement.find('.card-header h2').append('Dismiss')
+ }
+ }
+
+ $('.buffer-form').on("submit", tagSuggestedTweet);
+
imageUploadButt = document.getElementById('image-upload-button')
imageUpload = document.getElementById('image-upload')
imageUploadSubmit = document.getElementById('image-upload-submit')
diff --git a/app/views/internal/articles/index.html.erb b/app/views/internal/articles/index.html.erb
index 8bbb0928f..a2d57eb8e 100644
--- a/app/views/internal/articles/index.html.erb
+++ b/app/views/internal/articles/index.html.erb
@@ -47,29 +47,40 @@
<%= Tag.find_by(id: buffer_update.tag_id)&.name || buffer_update.social_service_name %>:
-
-
+ <%= Tag.find_by(id: buffer_update.tag_id)&.name || buffer_update.social_service_name %>:
+
+
+
+
+