feature/RVRNEXT-38-use-font-awesome #51

Merged
bence merged 8 commits from feature/RVRNEXT-38-use-font-awesome into master 2023-05-06 21:52:27 +02:00
Showing only changes of commit c664b0a4bf - Show all commits

View File

@ -97,7 +97,7 @@ var RVR = {
RVR.showModalWithContent('Confirmation', this.dataset.confirmation, [ RVR.showModalWithContent('Confirmation', this.dataset.confirmation, [
{ {
type: 'button', type: 'button',
text: self.textContent, html: this.dataset.confirmationButton ? this.dataset.confirmationButton : this.innerHTML,
classNames: ['red'], classNames: ['red'],
onclick: function() { onclick: function() {
var event = new Event('submit', {'bubbles': true, 'cancelable': true}); var event = new Event('submit', {'bubbles': true, 'cancelable': true});
@ -147,7 +147,11 @@ var RVR = {
button.classList.add('marginTop'); button.classList.add('marginTop');
button.classList.add('marginRight'); button.classList.add('marginRight');
if (typeof extraButton.html !== 'undefined') {
button.innerHTML = extraButton.html;
} else {
button.textContent = extraButton.text; button.textContent = extraButton.text;
}
if (extraButton.type === 'a') { if (extraButton.type === 'a') {
button.href = extraButton.href; button.href = extraButton.href;