diff --git a/frontend/static/frontend/js/dropdown-to-buttons.js b/frontend/static/frontend/js/dropdown-to-buttons.js
index 4e02fad..5928e37 100644
--- a/frontend/static/frontend/js/dropdown-to-buttons.js
+++ b/frontend/static/frontend/js/dropdown-to-buttons.js
@@ -8,7 +8,7 @@ hidden.insertAfter($('.dtb'));
var checked = false;
$(".dtb option").unwrap().each(function() {
- var btn = $('
' + $(this).text() + '
');
+ var btn = $(' ' + $(this).text() + '
');
if($(this).is(':checked') && !checked) {
btn.removeClass("btn-secondary");
btn.addClass('btn-primary');
@@ -20,7 +20,9 @@ $(".dtb option").unwrap().each(function() {
$(document).on('click', '.dtb-btn', function() {
$('.dtb-btn').removeClass('btn-primary');
$('.dtb-btn').addClass('btn-secondary');
+ $('.dtb-btn').attr('style', "");
$(this).removeClass('btn-secondary');
$(this).addClass('btn-primary');
+ $(this).attr('style', $(this).attr('data-style'));
$('input[name="'+selectName+'"]').val($(this).attr("data-value"));
});
\ No newline at end of file
diff --git a/mood/templates/mood/status_edit.html b/mood/templates/mood/status_edit.html
index df6041d..f1a5a35 100644
--- a/mood/templates/mood/status_edit.html
+++ b/mood/templates/mood/status_edit.html
@@ -28,7 +28,7 @@
{% for mood in request.user.mood_set.all|dictsort:"value" %}
-
+
{% endfor %}