From b83474516b0645ce636cebbd9c5604e0da8b8ec8 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 18 Feb 2010 10:26:31 -0500 Subject: [PATCH] bug 4155 followup: fix indication of when checkbox syspref is modified Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js | 4 ++-- .../intranet-tmpl/prog/en/modules/admin/preferences.tmpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js b/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js index 62b57333b9..6f0d064921 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js @@ -29,7 +29,7 @@ $( document ).ready( function () { function mark_modified() { $( this.form ).find( '.save-all' ).removeAttr( 'disabled' ); $( this ).addClass( 'modified' ); - var name_cell = $( this ).parent().parent().find( '.name-cell' ); + var name_cell = $( this ).parents( '.name-row' ).find( '.name-cell' ); if ( !name_cell.find( '.modified-warning' ).length ) name_cell.append( '(modified)' ); KOHA.Preferences.Modified = true; @@ -40,7 +40,7 @@ $( document ).ready( function () { if ( this.defaultValue === undefined || this.value != this.defaultValue ) mark_modified.call( this ); } ).end() .find( 'select.preference' ).change( mark_modified ); - $('.$preference-checkbox').change( function () { + $('.preference-checkbox').change( function () { $('.preference-checkbox').addClass('modified'); mark_modified.call(this); } ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl index 1b29d72030..832be871fc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl @@ -53,7 +53,7 @@ - +
PreferenceValue
-- 2.39.5