Skip to content

Commit

Permalink
Revert "#127 Clean up HTML content of the form between upload attempts"
Browse files Browse the repository at this point in the history
This reverts commit cf2c2dd.
  • Loading branch information
softwareloop committed Jan 31, 2018
1 parent a1cee31 commit 5c746e1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 31 deletions.
Expand Up @@ -51,12 +51,6 @@
this.spawnUploadsBooked = true;
return;
}
// Metadata form might already have some leftovers, clean up old form HTML for next upload
var formHtmlId = this.id + "-metadata-form";
var formNode = YAHOO.util.Dom.get(formHtmlId);
while (formNode.hasChildNodes()) {
formNode.removeChild(formNode.lastChild);
}

if (this.showConfig.mode === this.MODE_SINGLE_UPDATE) {
Alfresco.logger.debug("Single update");
Expand Down
Expand Up @@ -30,16 +30,7 @@
Alfresco.logger.debug("show", arguments);

SoftwareLoop.FlashUpload.superclass.show.call(this, config);

// Metadata form might already have some leftovers, clean up old form HTML for next upload
var formHtmlId = this.id + "-metadata-form";
var formNode = YAHOO.util.Dom.get(formHtmlId);
if (formNode) { // Only attempt to delete old form HTML if it does already exist
while (formNode.hasChildNodes()) {
formNode.removeChild(formNode.lastChild);
}
}


this.loadTypes(this.populateSelect, this);
Alfresco.logger.debug("END show");
},
Expand Down
Expand Up @@ -30,15 +30,7 @@
this.showMainDialog();

SoftwareLoop.HtmlUpload.superclass.show.call(this, config);

// Metadata form might already have some leftovers, clean up old form HTML for next upload
var formHtmlId = this.id + "-metadata-form";
var formNode = YAHOO.util.Dom.get(formHtmlId);
if (formNode) { // Only attempt to delete old form HTML if it does already exist
while (formNode.hasChildNodes()) {
formNode.removeChild(formNode.lastChild);
}
}

this.loadTypes(function () {
Alfresco.logger.debug("loadTypes callback");
this.populateSelect();
Expand Down
Expand Up @@ -368,12 +368,6 @@
var propertyData = formRuntime._buildAjaxForSubmit(form);
propertyData.contentType = contentType;
this.fileStore[data.id].propertyData = propertyData;
// Metadata form processed, clean up old form HTML for next upload
var formHtmlId = this.id + "-metadata-form";
var formNode = YAHOO.util.Dom.get(formHtmlId);
while (formNode.hasChildNodes()) {
formNode.removeChild(formNode.lastChild);
}
Alfresco.logger.debug("END processMetadata", propertyData);
},

Expand Down

0 comments on commit 5c746e1

Please sign in to comment.