Sorry, another (more serious) problem I am having with action buttons.
I have set up some action buttons, but when they display on the screen they all appear to have the same div id ($12_1). This is then causing issues in the onCubeClick event. Has anyone else experienced anything like this, or can see my silly mistake?
Thanks, Apollo.
I have set up some action buttons, but when they display on the screen they all appear to have the same div id ($12_1). This is then causing issues in the onCubeClick event. Has anyone else experienced anything like this, or can see my silly mistake?
Thanks, Apollo.
Code: Select all
case 'initialCubeSelection':
for ( var id=1; id<=6; id++ ) {
var cube = '<div class="cube cube' + id + '" style="display: inline-block;"></div>';
var currentChoice = (args.step == 2)? cube + cube : cube;
this.addActionButton( 'cubeButton_' + id, _(currentChoice), 'onCubeClick' );
}
break;