Modified: makaanga/0.x/htdocs/system/admin/js/media.js (5114 => 5115)
--- makaanga/0.x/htdocs/system/admin/js/media.js 2011-05-07 23:55:27 UTC (rev 5114)
+++ makaanga/0.x/htdocs/system/admin/js/media.js 2011-05-08 01:51:50 UTC (rev 5115)
@@ -94,7 +94,7 @@
// if ($('.mediaphotos .media', container).length == 0 && $('.media_dirlevel:first-child li.active', container).length == 0) {
// $('.media_dirlevel:last-child li:first-child', container).click();
// }
-
+
$('.media img').addClass('loading');
// As each image loads
@@ -113,8 +113,10 @@
},
resize_media_row: function() {
+ // Obtain the silo id we're working in so we can resize the correct silo's media_row
+ var silo_id = $('.mediasplitter:not(".ui-tabs-hide")').attr('id');
var dirswidth = 0;
- $('.media_dirlevel').each(function(){
+ $('#' + silo_id +' .media_dirlevel').each(function(){
var maxw = 0;
$(this).find('.directory').each(function(){
maxw = Math.max(maxw, $(this).outerWidth());
@@ -122,8 +124,7 @@
$(this).width(maxw);
dirswidth += maxw;
});
- $('.media_row').width(dirswidth + $('.mediaphotos').outerWidth() + 33);
-
+ $('#' + silo_id +' .media_row').width(dirswidth + $('#' + silo_id +' .mediaphotos').outerWidth() + 33);
},
clickdir: function(el, path) {