Author: sevein
Date: Thu Sep 17 08:12:52 2009
New Revision: 3361

Log:
Fix for numbering error in multi-file digital objects upload page (issue 939).

Modified:
   trunk/web/js/multiFileUpload.js

Modified: trunk/web/js/multiFileUpload.js
==============================================================================
--- trunk/web/js/multiFileUpload.js     Thu Sep 17 07:59:50 2009        (r3360)
+++ trunk/web/js/multiFileUpload.js     Thu Sep 17 08:12:52 2009        (r3361)
@@ -177,7 +177,7 @@
     });
 
     // Get the file index counting objects already uploaded
-    var lastInputName = $('input[type=hidden][name*=files]').attr("name");
+    var lastInputName = $('input[type=hidden][name*=files]:last').attr("name");
     fileIndex = lastInputName ? 
parseInt(lastInputName.match(/[0-9]+/).shift()) + 1 : 0;
 
     // Add 1 to the index to give a value > 0 and pad with a zero if < 10

--~--~---------~--~----~------------~-------~--~----~
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