From b5659f64255d8801f2afbcde6d172c493ac4e683 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 20 Sep 2012 14:22:19 +0200 Subject: [PATCH] Bug 8726: Followup FIX save didyoumean syspref Signed-off-by: Jared Camins-Esakov --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt index 8d2ae52f9b..fd9dfe1c10 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt @@ -50,7 +50,7 @@ var serializedconfig = '['; $('#didyoumean' + interface + ' .pluginlist .plugin').each(function(index) { var name = $(this).find('.pluginlabel').text(); - var enabled = $(this).find('#checkbox_' + name).attr('checked') == 'checked' ? + var enabled = $(this).find('input:checkbox:checked').length ? ', "enabled": 1' : ''; serializedconfig += '{ "name": "' + name + '"' + enabled + '}, '; }); -- 2.39.5