[Koha-patches] [PATCH] bug 4155 followup: fix indication of when checkbox syspref is modified
Galen Charlton
gmcharlt at gmail.com
Thu Feb 18 16:27:05 CET 2010
Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
.../intranet-tmpl/prog/en/js/pages/preferences.js | 4 ++--
.../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 62b5733..6f0d064 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( '<em class="modified-warning">(modified)</em>' );
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 1b29d72..832be87 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 @@
<!-- TMPL_UNLESS NAME="__last__" --><tbody><!-- /TMPL_UNLESS -->
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="__first__" --><table><thead><tr><th>Preference</th><th>Value</th></tr></thead><tbody><!-- /TMPL_IF -->
- <tr>
+ <tr class="name-row">
<td class="name-cell">
<code>
<!-- TMPL_LOOP NAME="NAMES" -->
--
1.6.3.3
More information about the Koha-patches
mailing list