Skip to content

Commit

Permalink
Build of fileupload JS
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jun 4, 2016
1 parent f9531e5 commit a0b720e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions dist/twist/Core/Resources/twist/fileupload/js/twistfileupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,15 +409,17 @@

if( strFileDetail.indexOf( '/' ) !== -1 ) {
var arrDelve = strFileDetail.split( '/' ),
objToDelve = objUploadedFile[arrDelve[0]];
objToDelve = objUploadedFile[arrDelve[0]] || null;

arrDelve.shift();

for( var intKeyPart in arrDelve ) {
objToDelve = objToDelve[arrDelve[intKeyPart]];
}
if( objToDelve ) {
for( var intKeyPart in arrDelve ) {
objToDelve = objToDelve[arrDelve[intKeyPart]] || null;
}

strProperty = objToDelve;
strProperty = objToDelve || null;
}
} else {
strProperty = objUploadedFile[strFileDetail] || null;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a0b720e

Please sign in to comment.