json dialog parser fixed x2
This commit is contained in:
parent
73d06bb73d
commit
8fb1cbd2cd
@ -171,7 +171,7 @@ function showDialog(body) {
|
||||
let html_btns = '';
|
||||
for(let i = 0; i < btns.length; i++) {
|
||||
let btn = btns[i];
|
||||
html_btns += '<div id="buybtn" onclick="actionButtonClicked(['+btn.onclickAction.map((x) => '"'+x+'"').join(',')+'])" class="btn '+btn.buttonColor.toLowerCase()+'">'+btn.buttonText+'</div>';
|
||||
html_btns += '<div id="buybtn" onclick="actionButtonClicked('+JSON.stringify(btn.onclickAction)+')" class="btn '+btn.buttonColor.toLowerCase()+'">'+btn.buttonText+'</div>';
|
||||
}
|
||||
$("#twobtns").html(html_btns);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user