Bug 5862 - Incompatibility in ajax.js with "localName" for Internet Explorer
It has been detected an incompatibility with Internet Explorer in the ajax.js file that cause a javascript error for this browser that prevents proper operation. The error occurs because the "localName" is not supported by Internet Explorer and returns "undefined". Bug 5862 - Incompatibility in ajax.js with "localName" for Internet Explorer Fix error on comma for IE Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
01b6e7a6dd
commit
0499633a6b
1 changed files with 7 additions and 3 deletions
|
@ -7,7 +7,7 @@ KOHA.AJAX = {
|
|||
cache: false,
|
||||
dataType: 'json',
|
||||
type: 'POST',
|
||||
error: function ( xhr, stat, error ) { KOHA.AJAX.BaseError( error_callback, xhr, stat, error ) },
|
||||
error: function ( xhr, stat, error ) { KOHA.AJAX.BaseError( error_callback, xhr, stat, error ) }
|
||||
} );
|
||||
$.ajax( options );
|
||||
},
|
||||
|
@ -37,7 +37,9 @@ KOHA.AJAX = {
|
|||
.attr( 'disabled', 'disabled' )
|
||||
.each( function () {
|
||||
var $image = $( '<img src="/intranet-tmpl/prog/img/spinner-small.gif" alt="" class="spinner" />' );
|
||||
switch ( this.localName.toLowerCase() ) {
|
||||
var selector_type = this.localName;
|
||||
if (selector_type == undefined) selector_type = this.nodeName; // IE only
|
||||
switch ( selector_type.toLowerCase() ) {
|
||||
case 'input':
|
||||
$( this ).data( 'original-text', this.value );
|
||||
this.value = text;
|
||||
|
@ -62,7 +64,9 @@ KOHA.AJAX = {
|
|||
$( selector )
|
||||
.removeAttr( 'disabled' )
|
||||
.each( function () {
|
||||
switch ( this.localName.toLowerCase() ) {
|
||||
var selector_type = this.localName;
|
||||
if (selector_type == undefined) selector_type = this.nodeName; // IE only
|
||||
switch ( selector_type.toLowerCase() ) {
|
||||
case 'input':
|
||||
this.value = $( this ).data( 'original-text' );
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue