Widget:costumeSwitcher: Difference between revisions
Jump to navigation
Jump to search
m It was a typo in function keyword... |
Debug Log |
||
Line 7: | Line 7: | ||
var statContainer = selectBox.closest('.stattable'); | var statContainer = selectBox.closest('.stattable'); | ||
console.log(element); | |||
console.log(selectedValue); | |||
for (var key in tdollData) { | for (var key in tdollData) { | ||
if (tdollData.hasOwnProperty(key)) { | if (tdollData.hasOwnProperty(key)) { | ||
statContainer.find('*[data-tdoll-stat-id="' + key + '"]') | var valField = statContainer.find('*[data-tdoll-stat-id="' + key + '"]'); | ||
var newValue = tdollData[key]; | |||
console.log(valField, newValue); | |||
valField.text(newValue); | |||
} | } | ||
} | } |