1
0

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:
Matthias Mees
2013-06-07 15:18:20 +02:00
parent d882a94368
commit 331f2c441a

View File

@ -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() {