Ticket #35501: 35501.4.patch
File 35501.4.patch, 1.0 KB (added by , 8 years ago) |
---|
-
src/wp-includes/js/wp-lists.js
160 160 * @return {boolean} 161 161 */ 162 162 ajaxDel: function( e, s ) { 163 164 // Return if there is already an AJAX request in progress. 165 if ( wpList.xhr && 4 !== wpList.xhr.readyState ) { 166 return false; 167 } 168 163 169 e = $(e); 164 170 s = s || {}; 165 171 var list = this, data = wpList.parseData(e,'delete'), element, res, rres; … … 225 231 } 226 232 }; 227 233 228 $.ajax( s );234 wpList.xhr = $.ajax( s ); 229 235 return false; 230 236 }, 231 237 232 238 ajaxDim: function( e, s ) { 239 240 // Return if there is already an AJAX request in progress. 241 if ( wpList.xhr && 4 !== wpList.xhr.readyState ) { 242 return false; 243 } 244 233 245 if ( $(e).parent().css('display') == 'none' ) // Prevent hidden links from being clicked by hotkeys 234 246 return false; 235 247 … … 330 342 } 331 343 }; 332 344 333 $.ajax( s );345 wpList.xhr = $.ajax( s ); 334 346 return false; 335 347 }, 336 348