Files
mozo-backend/app/assets/javascripts/bootstrap.js.coffee
T
2012-08-29 17:42:04 +02:00

13 lines
392 B
CoffeeScript

jQuery ->
$("a[rel=popover]").popover()
$(".tooltip").tooltip()
$("a[rel=tooltip]").tooltip()
$('input.currency').each(->
obj = $(this)
original_width = obj.width()
obj.wrap("<div class='input-prepend'>")
currency_sign = $("<span class='add-on'>&euro;</span>")
obj.before(currency_sign)
obj.css('width', (original_width - currency_sign.outerWidth())+'px')
)