app/helpers/timepiece_helper.rb in timepiece-0.1.1 vs app/helpers/timepiece_helper.rb in timepiece-0.1.2
- old
+ new
@@ -22,15 +22,10 @@
"<span class='timepiece-separator tp-separator-1'>:</span>"\
"<span class='timepiece-minutes'>#{minutes}</span>"\
"<span class='timepiece-separator tp-separator-2'>:</span>"\
"<span class='timepiece-seconds'>#{seconds}</span>"
if type == '12'
- time = time + "<span class='timepiece-abbr'>#{var}</span>"
+ time = time + "<span class='timepiece-abbr timepiece-abbr-#{var}'>#{var}</span>"
end
content_tag(:span, time.html_safe, class: 'timepiece', 'data-timezone' => location, 'data-tptype' => type)
end
-end
-
-
-# Note: add class to timepiece-abbr: timepiece-abbr-#{var} . Working this on the JS side shouldn't be too difficult just...
-# element.addClass('timepiece-abbr-' + var) right? Except, you have to remove old and add new, toggle or something-something.
-# Therein lies the difficulty.
+end
\ No newline at end of file