Bugzilla – Attachment 3541 Details for
Bug 6010
Can't save system preferences on IE8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Corrects a javascript error on IE8 when trying to save preferences.
0001-Corrects-a-javascript-error-on-IE8-when-trying-to-sa.patch (text/plain), 1.60 KB, created by
Frédérick Capovilla
on 2011-03-30 19:29:52 UTC
(
hide
)
Description:
Corrects a javascript error on IE8 when trying to save preferences.
Filename:
MIME Type:
Creator:
Frédérick Capovilla
Created:
2011-03-30 19:29:52 UTC
Size:
1.60 KB
patch
obsolete
>From c491b99c4d8c153cbeeb77a61125b92e840bde21 Mon Sep 17 00:00:00 2001 >From: =?utf-8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= <frederick.capovilla@sys-tech.net> >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 = $( '<img src="/intranet-tmpl/prog/img/spinner-small.gif" alt="" class="spinner" />' ); >- 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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6010
: 3541