app/assets/javascripts/caboose/admin_media_index.js in caboose-cms-0.6.5 vs app/assets/javascripts/caboose/admin_media_index.js in caboose-cms-0.6.6

- old
+ new

@@ -228,11 +228,11 @@ var ul = $('<ul/>'); var processing = false; if (that.cat.media.length > 0) { $.each(that.cat.media, function(i, m) { - if (m.image_urls && m.processed == false) + if (m.media_type == 'image' && m.processed == false) processing = true var li = $('<li/>') .attr('id', 'media' + m.id) .addClass('media') .data('media_id', m.id) @@ -259,10 +259,10 @@ multiple: true, revert: 'invalid', start: function() { $(this).data("origPosition", $(this).position()); } }); }); - }, + }, //============================================================================ select_media: function(media_id) {