Changeset 20211 for trunk/themes/default/js/thumbnails.loader.js
- Timestamp:
- Jan 17, 2013, 7:17:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/js/thumbnails.loader.js
r13452 r20211 12 12 data: { ajaxload: 'true' }, 13 13 dataType: 'json', 14 beforeSend: function(){jQuery('.loader').show()}, 14 15 success: function(result) { 15 16 img.attr('src', result.url); 17 jQuery('.loader').hide(); 16 18 }, 17 19 error: function() { 18 20 if (loop < 3) 19 21 add_thumbnail_to_queue(img, ++loop); // Retry 3 times 22 if ( typeof( error_icon ) != "undefined" ) 23 img.attr('src', error_icon); 24 jQuery('.loader').hide(); 20 25 } 21 26 });
Note: See TracChangeset
for help on using the changeset viewer.