Add getfilename helper function; adapted checkInputs() to 2.0.
NOTE: checkInputs() is currently broken as I don't have time for further debugging right now. I assume it's broken due to changes to the upload form by jQueryfying addUploadField().
This commit is contained in:
@ -438,6 +438,8 @@ function treeToggleAll() {
|
||||
var inputStorage = new Array();
|
||||
|
||||
function checkInputs() {
|
||||
var fieldcount = $('.uploadform_userfile').length;
|
||||
|
||||
for (i = 1; i <= fieldcount; i++) {
|
||||
if (!inputStorage[i]) {
|
||||
fillInput(i, i);
|
||||
@ -475,6 +477,12 @@ function fillInput(source, target) {
|
||||
}
|
||||
}
|
||||
|
||||
// Helper function for fillInput()
|
||||
function getfilename(value) {
|
||||
re = /^.+[\/\\]+?(.+)$/;
|
||||
return value.replace(re, "$1");
|
||||
}
|
||||
|
||||
// Hides the foreign upload form if batch upload is used (if more
|
||||
// images are added)
|
||||
function hideForeign() {
|
||||
|
Reference in New Issue
Block a user