From b5d8fd8ecb5235e25d3a680e419bf1f125a30810 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Wed, 17 Feb 2010 22:21:15 +0100 Subject: [PATCH] Bug 4155 Can't change the language of the staff client in prefs Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js | 8 ++++++-- .../intranet-tmpl/prog/en/modules/admin/preferences.tmpl | 9 ++++----- 2 files changed, 10 insertions(+), 7 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 ff9d93204a..62b57333b9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js @@ -30,8 +30,8 @@ $( document ).ready( function () { $( this.form ).find( '.save-all' ).removeAttr( 'disabled' ); $( this ).addClass( 'modified' ); var name_cell = $( this ).parent().parent().find( '.name-cell' ); - - if ( !name_cell.find( '.modified-warning' ).length ) name_cell.append( '(modified)' ); + if ( !name_cell.find( '.modified-warning' ).length ) + name_cell.append( '(modified)' ); KOHA.Preferences.Modified = true; } @@ -40,6 +40,10 @@ $( 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').addClass('modified'); + mark_modified.call(this); + } ); window.onbeforeunload = function () { if ( KOHA.Preferences.Modified ) { 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 37a4c20865..1b29d72030 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl @@ -94,7 +94,6 @@
-
@@ -103,9 +102,9 @@
- " name="pref_" id="" type="checkbox" checked="checked" /> + " name="pref_" id="" type="checkbox" checked="checked" class="preference preference-checkbox"/> - " name="pref_" id="" type="checkbox" /> + " name="pref_" id="" type="checkbox" class="preference preference-checkbox"/>
@@ -113,9 +112,9 @@
- " name="pref_" id="" type="checkbox" checked="checked" /> + " name="pref_" id="" type="checkbox" checked="checked" class="preference preference-checkbox"/> - " name="pref_" id="" type="checkbox" /> + " name="pref_" id="" type="checkbox" class="preference preference-checkbox"/>
-- 2.39.5