Skip to content

Commit c5e9605

Browse files
authored
Merge pull request #121 from subuash/master
Fix Issue #113 and part of #13
2 parents 10d17bb + e8d9054 commit c5e9605

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

scripts/output.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
22
* Filename : output.js
3-
* Functions : now, today, sanitizeString, getSubgoalInfo, getActionInfo, createCSV,
3+
* Functions : now, today, sanitizeString, getSubgoalInfo, getActionInfo, createCSV,
44
* downloadCSV, downloadURI, create_zip, parseSubgoalArray, createOldCSV
5-
* Description :
5+
* Description :
66
*/
77

88

@@ -63,7 +63,7 @@ function getSubgoalInfo(){
6363
var currSubgoal = subgoalList[j]; //Current Input
6464
subgoalEntry.push("\n");
6565
subgoalEntry.push("\n"); // new row
66-
subgoalEntry.push("Subgoal " + (j+1));
66+
subgoalEntry.push("Subgoal " + (parseInt(j)+1));
6767
subgoalEntry.push(sanitizeString(currSubgoal.name));
6868
subgoalEntry.push("\n"); // new row
6969
subgoalEntry.push("Will the persona have formed this subgoal as a step to their overall goal?");
@@ -192,10 +192,10 @@ function getActionInfo(actionList, j){
192192
actionEntry.push(actionList[i].postAction.facetValues["tinker"]);
193193
actionEntry.push("\n");
194194
actionEntry.push("Action Image Name:");
195-
actionEntry.push("S"+(1 + parseInt(j))+"A"+(1 + parseInt(actionList[i].id))+"_"+actionList[i].name.substring(1, actionList[i].name.length-1));
195+
actionEntry.push("S"+(1 + parseInt(j))+"A"+(parseInt(actionList[i].id))+"_"+actionList[i].name.substring(1, actionList[i].name.length-1));
196196
actionEntry.push("\n");
197197

198-
downloadURI(actionList[i].imgURL, "S"+(1 + parseInt(j))+"A"+(1 + parseInt(actionList[i].id))+"_"+actionList[i].name.substring(1, actionList[i].name.length-1));
198+
downloadURI(actionList[i].imgURL, "S"+(1 + parseInt(j))+"A"+(parseInt(actionList[i].id))+"_"+actionList[i].name.substring(1, actionList[i].name.length-1));
199199
}
200200
return actionEntry.join(",");
201201
}
@@ -230,7 +230,7 @@ function createCSV() {
230230

231231
var fullContent = getSubgoalInfo();
232232
csvContent += fullContent;
233-
233+
234234
return csvContent;
235235
}
236236

@@ -332,7 +332,7 @@ function create_zip(csvContent, old) {
332332
333333
/*
334334
* Function: parseSubgoalArray
335-
*
335+
*
336336
*/
337337
function parseSubgoalArray(){
338338
var userInput= getSubgoalArrayFromLocal();
@@ -392,7 +392,7 @@ function parseSubgoalArray(){
392392
newName = newName.slice(0, newName.length-1)
393393
}
394394

395-
downloadURI(currI.actions[i].imgURL, "S"+(1 + parseInt(j))+"A"+(1 + parseInt(i))+"_"+newName);
395+
downloadURI(currI.actions[i].imgURL, "S"+(1 + parseInt(j))+"A"+(parseInt(i))+"_"+newName);
396396
}
397397

398398
if (entry.length != 0) {

scripts/prewalkthrough.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,6 @@ function handlePreWalkthroughInfo () {
206206
else {
207207
saveVarToLocal("personaPronoun", personaPronoun);
208208
saveVarToLocal("personaPossessive", personaPossessive);
209-
sidebarBody().find("#pronounInput").val('');
210-
sidebarBody().find("#possessiveInput").val('');
211209

212210
var personaName = getVarFromLocal("personaName");
213211
setStatusToTrue("gotPronoun");

0 commit comments

Comments
 (0)