app/assets/javascripts/contour/global.js.coffee in contour-1.2.0.pre vs app/assets/javascripts/contour/global.js.coffee in contour-1.2.0.pre2
- old
+ new
@@ -1,9 +1,9 @@
# Global functions referenced from HTML
@showWaiting = (element_id, text, centered) ->
element = $(element_id)
if element && centered
- element.html('<br /><center><img width=\"13\" height=\"13\" src=\"' + root_url + 'assets/contour/ajax-loader.gif\" align=\"absmiddle\" alt=\"...\" />' + text + '</center><br />')
+ element.html('<br /><div class=\"center\"><img width=\"13\" height=\"13\" src=\"' + root_url + 'assets/contour/ajax-loader.gif\" align=\"absmiddle\" alt=\"...\" />' + text + '</div><br />')
else if element
element.html('<img width=\"13\" height=\"13\" src=\"' + root_url + 'assets/contour/ajax-loader.gif\" align=\"absmiddle\" alt=\"...\" />' + text)
@flashMessage = (message, alert_type = 'success', overwrite = true) ->
div_block = "<div class='alert alert-#{alert_type}'><button type='button' class='close' data-dismiss='alert'>×</button>#{message}</div>"