").html(data.rowtitle + ": " + translations.success));
// Process the next item
queue.next();
}
else {
// Why did we fail?
if (response.login) {
// We were logged out
LoginBox(response.message);
}
else {
dialogContent.append($("
").html(data.rowtitle + ": " + translations.failure));
// Likely just an error that we want to report on
footer.find(".saving").remove();
SystemMessageInline(response.message, footer.closest(".modal"));
}
}
},
error: function(responseText) {
SystemMessage(responseText, false);
}
});
},
// When the queue completes naturally, execute this function.
complete: function() {
// Remove the save button
footer.find(".saving").parent().remove();
// Refresh the grids
// (this is a global refresh)
XiboRefreshAllGrids();
}
});
// Add our selected items to the queue
$(matches).each(function() {
queue.add(this);
});
queue.start();
// Keep the modal window open!
return false;
});
footer.append(extrabutton);
}
// Close button
extrabutton = $('