simon-svn: puzzles: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sun Mar 31 10:58:46 BST 2013


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       9788
Date:           2013-03-31 10:58:46 +0100 (Sun, 31 Mar 2013)

Log message (8 lines):
Apply a bodge to arrange that if the user selects Custom from the game
type dropdown, we still get an 'onchange' event if they select it a
second time. Normally this wouldn't happen, because onchange means
what it says and we only get it if a _different_ element is selected.

My solution is to create two list items called Custom, set one of them
as display:none to stop it showing up when the list is dropped down,
and to select it after the configuration box closes.

Modified files:
U   puzzles/emcc.c
U   puzzles/emcclib.js
U   puzzles/emccpre.js

Links:
http://svn.tartarus.org/sgt/?rev=9788&view=rev
http://svn.tartarus.org/sgt/puzzles/emcc.c?rev=9788&r1=9787&r2=9788
http://svn.tartarus.org/sgt/puzzles/emcclib.js?rev=9788&r1=9787&r2=9788
http://svn.tartarus.org/sgt/puzzles/emccpre.js?rev=9788&r1=9787&r2=9788



More information about the tartarus-commits mailing list