From c491b99c4d8c153cbeeb77a61125b92e840bde21 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= Date: Wed, 30 Mar 2011 15:12:22 -0400 Subject: [PATCH] Corrects a javascript error on IE8 when trying to save preferences. IE8 can't use the localName property on elements. localName was replaced by the equivalent (and more cross-browser) nodeName. --- koha-tmpl/intranet-tmpl/prog/en/js/ajax.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/ajax.js b/koha-tmpl/intranet-tmpl/prog/en/js/ajax.js index 95d59e7..da3b454 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/ajax.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/ajax.js @@ -37,7 +37,7 @@ KOHA.AJAX = { .attr( 'disabled', 'disabled' ) .each( function () { var $image = $( '' ); - switch ( this.localName.toLowerCase() ) { + switch ( this.nodeName.toLowerCase() ) { case 'input': $( this ).data( 'original-text', this.value ); this.value = text; @@ -62,7 +62,7 @@ KOHA.AJAX = { $( selector ) .removeAttr( 'disabled' ) .each( function () { - switch ( this.localName.toLowerCase() ) { + switch ( this.nodeName.toLowerCase() ) { case 'input': this.value = $( this ).data( 'original-text' ); break; -- 1.5.6.5