allow palette changes when loading game data
This commit is contained in:
parent
2134e4fe35
commit
59ea882e9a
|
@ -311,7 +311,7 @@ $(document).ready(function() {
|
|||
readFile(this);
|
||||
});
|
||||
|
||||
$('#palette input').on('change', function() {
|
||||
$(document).on('change', '#palette input', function() {
|
||||
// if this is a colour input, update the palette
|
||||
if ($(this).attr('type') === 'color') {
|
||||
palette[$(this).attr('name')] = hexToColour($(this).val());
|
||||
|
|
Loading…
Reference in New Issue