From ea6b89581ea35acbcf3afa9e424210212be5f1a6 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sun, 3 Jun 2018 15:57:25 -0400 Subject: [PATCH] fix latent bug preventing saving checkbox values --- print/resources/inkstitch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/print/resources/inkstitch.js b/print/resources/inkstitch.js index 67690df27..e5065fe6e 100644 --- a/print/resources/inkstitch.js +++ b/print/resources/inkstitch.js @@ -295,6 +295,7 @@ $(function() { $('.' + field_name).toggle($(this).prop('checked')); setPageNumbers(); }).on('change', function() { + var field_name = $(this).attr('data-field-name'); $.postJSON('/settings/' + field_name, {value: $(this).prop('checked')}); });