Minor buttonrama issue with Cancel button after exporting financial batch
On the non-modal screen after you choose the export format and export the batch, what's supposed to happen is the Cancel button text should change to say "Done". Since it's no longer an <input>
element the current method used to do that doesn't work anymore.
It's this line in templates/CRM/Financial/Form/Export.tpl:
$('#_qf_Export_cancel').val('{/literal}{ts}Done{/ts}{literal}');
It's a little tricky with the button because you need to replace the text without also replacing the <i>
element which is inside the button, so you can't just change val
to text
. This might do it as long as the translation doesn't have special chars in it, but that would have been a problem before too:
$('#_qf_Export_cancel').html($('#_qf_Export_cancel').html().replace('{/literal}{ts}Cancel{/ts}{literal}', '{/literal}{ts}Done{/ts}{literal}'));
Or since the icon shouldn't be an X anymore anyway, maybe it's ok to just use text().