Lines 7-13
KOHA.AJAX = {
Link Here
|
7 |
cache: false, |
7 |
cache: false, |
8 |
dataType: 'json', |
8 |
dataType: 'json', |
9 |
type: 'POST', |
9 |
type: 'POST', |
10 |
error: function ( xhr, stat, error ) { KOHA.AJAX.BaseError( error_callback, xhr, stat, error ) }, |
10 |
error: function ( xhr, stat, error ) { KOHA.AJAX.BaseError( error_callback, xhr, stat, error ) } |
11 |
} ); |
11 |
} ); |
12 |
$.ajax( options ); |
12 |
$.ajax( options ); |
13 |
}, |
13 |
}, |
Lines 37-43
KOHA.AJAX = {
Link Here
|
37 |
.attr( 'disabled', 'disabled' ) |
37 |
.attr( 'disabled', 'disabled' ) |
38 |
.each( function () { |
38 |
.each( function () { |
39 |
var $image = $( '<img src="/intranet-tmpl/prog/img/spinner-small.gif" alt="" class="spinner" />' ); |
39 |
var $image = $( '<img src="/intranet-tmpl/prog/img/spinner-small.gif" alt="" class="spinner" />' ); |
40 |
switch ( this.localName.toLowerCase() ) { |
40 |
var selector_type = this.localName; |
|
|
41 |
if (selector_type == undefined) selector_type = this.nodeName; // IE only |
42 |
switch ( selector_type.toLowerCase() ) { |
41 |
case 'input': |
43 |
case 'input': |
42 |
$( this ).data( 'original-text', this.value ); |
44 |
$( this ).data( 'original-text', this.value ); |
43 |
this.value = text; |
45 |
this.value = text; |
Lines 62-68
KOHA.AJAX = {
Link Here
|
62 |
$( selector ) |
64 |
$( selector ) |
63 |
.removeAttr( 'disabled' ) |
65 |
.removeAttr( 'disabled' ) |
64 |
.each( function () { |
66 |
.each( function () { |
65 |
switch ( this.localName.toLowerCase() ) { |
67 |
var selector_type = this.localName; |
|
|
68 |
if (selector_type == undefined) selector_type = this.nodeName; // IE only |
69 |
switch ( selector_type.toLowerCase() ) { |
66 |
case 'input': |
70 |
case 'input': |
67 |
this.value = $( this ).data( 'original-text' ); |
71 |
this.value = $( this ).data( 'original-text' ); |
68 |
break; |
72 |
break; |
69 |
- |
|
|