- Posts: 195
- Thank you received: 7
Ask the community, share ideas, and connect with other LimeSurvey users!
$(document).on('ready pjax:scriptcomplete',function(){ // Modify clearall button text $('body').on('show.bs.modal', function(e) { if($.trim($('#identity__bsconfirmModal_button_ok').text()) == 'Valeu') { $('#identity__bsconfirmModal_button_ok').text('Está ben') } }); });
I don't think you can modify the modal pop-ups via the theme manager but you have two other options.
<script> LSvar.lang.confirm.confirm_cancel = "My cancel"; LSvar.lang.confirm.confirm_ok = "My cancel"; </script>
Yes, but, as far as I can see, it's not accessible via the theme manager without modifying the <template_editor> files.Else : github.com/LimeSurvey/LimeSurvey/blob/ma...rap_alert_modal.twig
for other modal.
Yes , in skelvanilla i add it in error.
Yes, but, as far as I can see, it's not accessible via the theme manager without modifying the <template_editor> files.Else : github.com/LimeSurvey/LimeSurvey/blob/ma...rap_alert_modal.twig
for other modal.
This does still work in 5.1.5 but I'm surprised at how few items there are in the LSvar.lang object.I think you can (except if someone broke the functionality after implementation) Just after <body> or somewhere like this :
Code:<script> LSvar.lang.confirm.confirm_cancel = "My cancel"; LSvar.lang.confirm.confirm_ok = "My cancel"; </script>