mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 06:56:54 +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) {
|
function importSingleProtocol(index, replaceVals, resultCallback) {
|
||||||
// Retrieve general protocol info
|
// Retrieve general protocol info
|
||||||
var name = $('#import_protocol_name').val();
|
var name;
|
||||||
var authors = $('#protocol_authors').val();
|
var authors;
|
||||||
var createdAt = '';
|
var createdAt = '';
|
||||||
var updatedAt = '';
|
var updatedAt = '';
|
||||||
var descriptionAssetsJson = [];
|
var descriptionAssetsJson = [];
|
||||||
var protocolDescription;
|
var protocolDescription;
|
||||||
var protocolJson = {};
|
var protocolJson = {};
|
||||||
var steps = $(protocolXmls[index]).find('protocol > steps > step');
|
var steps;
|
||||||
var stepsJson = [];
|
var stepsJson = [];
|
||||||
|
|
||||||
previewProtocol(index, replaceVals);
|
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() {
|
$(protocolXmls[index]).find('protocol').each(function() {
|
||||||
createdAt = $(this).find('created_at').text();
|
createdAt = $(this).find('created_at').text();
|
||||||
updatedAt = $(this).find('updated_at').text();
|
updatedAt = $(this).find('updated_at').text();
|
||||||
|
|
Loading…
Reference in a new issue