Search found 2 matches

by Ballatik
11 April 2021, 21:31
Forum: Developers
Topic: button function being called without being clicked (solved)
Replies: 2
Views: 733

Re: button function being called without being clicked

It doesn't seem to be. If I remove the onMove function definition everything works fine and the move button just doesn't do anything, but if the function is there it tries to call it no matter which button I push. public function endTurn() { self::setAjaxMode(); $player = self::getArg( "player&...
by Ballatik
11 April 2021, 20:14
Forum: Developers
Topic: button function being called without being clicked (solved)
Replies: 2
Views: 733

button function being called without being clicked (solved)

I changed the function name to "onMoveButton" and that seems to have fixed it. I'm creating two buttons, move and end turn. Clicking on the first one calls the functions for both instead of just the clicked one. I'm sure it's something simple but I've been banging my head against it for w...

Go to advanced search