|
1 | 1 | /**
|
2 | 2 | * Loading plugin for jQuery
|
3 |
| -* version: v1.0.6 |
| 3 | +* version: v1.0.7 |
4 | 4 | *
|
5 | 5 | * Small helper to give the user a visual feedback that something is happening
|
6 | 6 | * when fetching/posting data
|
|
94 | 94 | self._loader = $( tpl );
|
95 | 95 |
|
96 | 96 | // Disable the element
|
97 |
| - if( $( self.element ).is( "input, textarea" ) && true === self.options.disableSource ) { |
| 97 | + if( $( self.element ).is( "input, textarea, select" ) && true === self.options.disableSource ) { |
98 | 98 |
|
99 | 99 | $( self.element ).attr( "disabled", "disabled" );
|
100 | 100 |
|
|
108 | 108 | // Set position
|
109 | 109 | switch( self.options.position ) {
|
110 | 110 |
|
111 |
| - case "inside": |
| 111 | + case "inside": |
112 | 112 | $( self.element ).html( self._loader );
|
113 | 113 | break;
|
114 | 114 |
|
| 115 | + case "none": /*EDIT:: 26/02/16 Added additional position option for 'none'*/ |
| 116 | + break; |
| 117 | + |
115 | 118 | case "overlay":
|
116 | 119 | var $wrapperTpl = null;
|
117 | 120 |
|
|
176 | 179 | disableOthers: function() {
|
177 | 180 | $.each(this.options.disableOthers, function( i, e ) {
|
178 | 181 | var elt = $( e );
|
179 |
| - if( elt.is( "button, input, textarea" ) ) { |
| 182 | + if( elt.is( "button, input, textarea, select" ) ) { |
180 | 183 | elt.attr( "disabled", "disabled" );
|
181 | 184 | }
|
182 | 185 | else {
|
|
188 | 191 | enableOthers: function() {
|
189 | 192 | $.each(this.options.disableOthers, function( i, e ) {
|
190 | 193 | var elt = $( e );
|
191 |
| - if( elt.is( "button, input, textarea" ) ) { |
| 194 | + if( elt.is( "button, input, textarea,select" ) ) { |
192 | 195 | elt.removeAttr( "disabled" );
|
193 | 196 | }
|
194 | 197 | else {
|
|
0 commit comments