EOM work 2

This commit is contained in:
Rick Falkvinge
2018-12-31 15:46:02 +01:00
parent 8e1bbb9f48
commit 3525489ca1
+19 -19
View File
@@ -286,30 +286,30 @@
function(result) {
if (result.Success) {
markItemCompleted(activeUpload);
// If there are items that depend on this one,
// disable their "skip" option now (because there's
// a first document in the series)
var itemIterator = $('.action-list-item[data-dependson="' + activeUpload + '"]');
while (itemIterator.length > 0) {
// We're only supporting a 1:1 chain at this time, no 1:n dependencies
var itemId = $(itemIterator).attr('data-item');
$('span.action-list-item[data-item="' + itemId + '"] span.action-skip').addClass('action-skip-disabled');
itemIterator = $('.action-list-item[data-dependson="' + itemId + '"]');
}
activeUpload = null;
} else {
// Todo: add more error handling later, maybe
clientFailedUpload();
}
});
markItemCompleted(activeUpload);
// If there are items that depend on this one,
// disable their "skip" option now (because there's
// a first document in the series)
var itemIterator = $('.action-list-item[data-dependson="' + activeUpload + '"]');
while (itemIterator.length > 0) {
// We're only supporting a 1:1 chain at this time, no 1:n dependencies
var itemId = $(itemIterator).attr('data-item');
$('span.action-list-item[data-item="' + itemId + '"] span.action-skip').addClass('action-skip-disabled');
itemIterator = $('.action-list-item[data-dependson="' + itemId + '"]');
}
activeUpload = null;
}
var uploadGuid = '<%=this.UploadControl.GuidString%>';