Ticket #35501: 35501.patch
File 35501.patch, 1021 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/js/wp-lists.js
160 160 * @return {boolean} 161 161 */ 162 162 ajaxDel: function( e, s ) { 163 // Return if there is already an AJAX request in progress 164 if ( wpList.xhr && wpList.xhr.readyState !== 4 ) 165 return false; 166 163 167 e = $(e); 164 168 s = s || {}; 165 169 var list = this, data = wpList.parseData(e,'delete'), element, res, rres; … … 225 229 } 226 230 }; 227 231 228 $.ajax( s );232 wpList.xhr = $.ajax( s ); 229 233 return false; 230 234 }, 231 235 232 236 ajaxDim: function( e, s ) { 237 // Return if there is already an AJAX request in progress 238 if ( wpList.xhr && wpList.xhr.readyState !== 4 ) 239 return false; 240 233 241 if ( $(e).parent().css('display') == 'none' ) // Prevent hidden links from being clicked by hotkeys 234 242 return false; 235 243 … … 326 334 } 327 335 }; 328 336 329 $.ajax( s );337 wpList.xhr = $.ajax( s ); 330 338 return false; 331 339 }, 332 340