app/assets/javascripts/i18n_dashboard/translations.js.coffee in i18n_dashboard-0.1.4 vs app/assets/javascripts/i18n_dashboard/translations.js.coffee in i18n_dashboard-0.1.5
- old
+ new
@@ -1,20 +1,17 @@
jQuery ->
$('#form-translation textarea').autosize()
- $('.add-translation').click (event) ->
+ $('#add-translation-link').click (event) ->
event.preventDefault()
$('#form-translation #locale').val('')
$('#form-translation #key').val('')
$('#form-translation #value').val('')
$('#form-translation #value').trigger('autosize')
- $('#form-translation #value').focus()
$('.edit-translation').click (event) ->
event.preventDefault()
$('#form-translation #locale').val($(@).data('locale'))
$('#form-translation #key').val($(@).data('key'))
$('#form-translation #value').val($(@).html().trim())
$('#form-translation #value').trigger('autosize')
- $('#form-translation #value').focus()
- $('#form-translation #value')[0].setSelectionRange(0,0)