Sha256: 308f04e5a53097544a12532d8ad358784466366461c56be7f24babea17345fc9
Contents?: true
Size: 1.3 KB
Versions: 5
Compression:
Stored size: 1.3 KB
Contents
// jQuery -> // $('#form-translation textarea').autosize() // $('#add-translation-link').click (event) -> // event.preventDefault() // $('#form-translation #locale').val('') // $('#form-translation #key').val('') // $('#form-translation #value').val('') // $('#form-translation #value').trigger('autosize') // $('.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') jQuery(function() { $('#form-translation textarea').autosize(); $('#add-translation-link').click(function(event) { event.preventDefault(); $('#form-translation #locale').val(''); $('#form-translation #key').val(''); $('#form-translation #value').val(''); return $('#form-translation #value').trigger('autosize'); }); return $('.edit-translation').click(function(event) { event.preventDefault(); $('#form-translation #locale').val($(this).data('locale')); $('#form-translation #key').val($(this).data('key')); $('#form-translation #value').val($(this).html().trim()); return $('#form-translation #value').trigger('autosize'); }); });
Version data entries
5 entries across 5 versions & 1 rubygems