allow palette changes when loading game data

This commit is contained in:
synth-ruiner 2017-12-23 22:33:31 +00:00
parent 2134e4fe35
commit 59ea882e9a
1 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ $(document).ready(function() {
readFile(this); readFile(this);
}); });
$('#palette input').on('change', function() { $(document).on('change', '#palette input', function() {
// if this is a colour input, update the palette // if this is a colour input, update the palette
if ($(this).attr('type') === 'color') { if ($(this).attr('type') === 'color') {
palette[$(this).attr('name')] = hexToColour($(this).val()); palette[$(this).attr('name')] = hexToColour($(this).val());