Skip to content

Commit

Permalink
update to content
Browse files Browse the repository at this point in the history
  • Loading branch information
ryestew committed May 16, 2018
1 parent f83ad4c commit d5201d7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/multiParamManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

var yo = require('yo-yo')
var css = require('./universal-dapp-styles')
// var helper = require('../remix/remix-lib/src/execution/txHelper')

class MultiParamManager {

Expand Down Expand Up @@ -57,13 +58,13 @@ class MultiParamManager {

makeMultiVal () {
var inputString = this.basicInputField.value
console.log(inputString)
var inputStringArray = inputString.split(',')
// !! the split here will mess up a value with a comma in it !!
// do we not make a split if its a , inside a []?
var inputJSON = JSON.parse('[' + inputString + ']')
console.log('inputJSON is ' + inputJSON)
var multiInputs = this.multiFields.querySelectorAll('input')
console.log('ml length ' + multiInputs.length)
for (var k = 0; k < multiInputs.length; k++) {
multiInputs[k].value = inputStringArray[k]
multiInputs[k].value = inputJSON[k]
console.log('inputJSON number ' + k + ' is ' + inputJSON[k])
}
}

Expand Down

0 comments on commit d5201d7

Please sign in to comment.