Author: sevein
Date: Sun Sep 20 14:58:08 2009
New Revision: 3447

Log:
Adjust width of thumbnail div only when image width is available.

Modified:
   trunk/web/js/multiFileUpload.js

Modified: trunk/web/js/multiFileUpload.js
==============================================================================
--- trunk/web/js/multiFileUpload.js     Sun Sep 20 14:57:56 2009        (r3446)
+++ trunk/web/js/multiFileUpload.js     Sun Sep 20 14:58:08 2009        (r3447)
@@ -164,7 +164,12 @@
       var thumbDiv = $('#thumbnail-' + event['id']);
       var thumbWidth = thumbDiv.find("img").width();
 
-      $(thumbDiv).width(thumbWidth).css("background-color", "White");
+      $(thumbDiv).css("background-color", "White");
+
+      if (thumbWidth)
+      {
+        $(thumbDiv).width(thumbWidth);
+      }
     }
 
     // Get the file index from the id passed by YUI

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to