From: Frédéric Demians Date: Wed, 17 Feb 2010 21:21:15 +0000 (+0100) Subject: Bug 4155 Can't change the language of the staff client in prefs X-Git-Tag: v3.02.00-alpha2~342 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=b5d8fd8ecb5235e25d3a680e419bf1f125a30810;p=koha.git Bug 4155 Can't change the language of the staff client in prefs Signed-off-by: Galen Charlton --- 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"/>