mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-05 22:44:22 +08:00
Fix protcol naming when load multiple protocols (#1904)
This commit is contained in:
parent
0d1ec0d4ed
commit
99b1075c28
1 changed files with 7 additions and 3 deletions
|
@ -513,18 +513,22 @@ function importProtocolFromFile(
|
|||
|
||||
function importSingleProtocol(index, replaceVals, resultCallback) {
|
||||
// Retrieve general protocol info
|
||||
var name = $('#import_protocol_name').val();
|
||||
var authors = $('#protocol_authors').val();
|
||||
var name;
|
||||
var authors;
|
||||
var createdAt = '';
|
||||
var updatedAt = '';
|
||||
var descriptionAssetsJson = [];
|
||||
var protocolDescription;
|
||||
var protocolJson = {};
|
||||
var steps = $(protocolXmls[index]).find('protocol > steps > step');
|
||||
var steps;
|
||||
var stepsJson = [];
|
||||
|
||||
previewProtocol(index, replaceVals);
|
||||
|
||||
name = $('#import_protocol_name').val();
|
||||
authors = $('#protocol_authors').val();
|
||||
steps = $(protocolXmls[index]).find('protocol > steps > step');
|
||||
|
||||
$(protocolXmls[index]).find('protocol').each(function() {
|
||||
createdAt = $(this).find('created_at').text();
|
||||
updatedAt = $(this).find('updated_at').text();
|
||||
|
|
Loading…
Reference in a new issue