File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 53
53
var noop = function ( ) { } ,
54
54
that = this ,
55
55
defaults = {
56
+ ajaxSettings : { } ,
56
57
autoSelectFirst : false ,
57
58
appendTo : document . body ,
58
59
serviceUrl : null ,
521
522
options = that . options ,
522
523
serviceUrl = options . serviceUrl ,
523
524
params ,
524
- cacheKey ;
525
+ cacheKey ,
526
+ ajaxSettings ;
525
527
526
528
options . params [ options . paramName ] = q ;
527
529
params = options . ignoreParams ? null : options . params ;
546
548
if ( that . currentRequest ) {
547
549
that . currentRequest . abort ( ) ;
548
550
}
549
- that . currentRequest = $ . ajax ( {
551
+
552
+ ajaxSettings = {
550
553
url : serviceUrl ,
551
554
data : params ,
552
555
type : options . type ,
553
556
dataType : options . dataType
554
- } ) . done ( function ( data ) {
557
+ } ;
558
+
559
+ $ . extend ( ajaxSettings , options . ajaxSettings ) ;
560
+
561
+ that . currentRequest = $ . ajax ( ajaxSettings ) . done ( function ( data ) {
555
562
var result ;
556
563
that . currentRequest = null ;
557
564
result = options . transformResult ( data ) ;
You can’t perform that action at this time.
0 commit comments