Skip to content

Commit 688e645

Browse files
Merge pull request #50 from SOCR/typo-fix
Fixes Typo. Closes #45
2 parents df8e38f + eaa9734 commit 688e645

1 file changed

Lines changed: 13 additions & 18 deletions

File tree

js/input/data.js

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -206,19 +206,17 @@ socr.dataTable = function () {
206206
$dataTable.handsontable('loadData', matrix);
207207

208208
}).fail(function () {
209-
210-
view.displayResponse('There was an error loadin the dataset', 'error')
211-
212-
})
209+
view.displayResponse('There was an error loading the dataset', 'error');
210+
});
213211

214212

215213
},
216214

217215
filterBySize: function (arrayOfTables) {
218216
var sizes = [];
219217
$(arrayOfTables).each(function (i) {
220-
sizes.push([$(this).find('tr:last').index(), i])
221-
})
218+
sizes.push([$(this).find('tr:last').index(), i]);
219+
});
222220
var maxIndex = 0;
223221
for (k = 0; k < sizes.length - 2; k++) {
224222
if (sizes[k][0] < sizes[k + 1][0])
@@ -268,8 +266,8 @@ socr.dataTable = function () {
268266
return matrix;
269267
},
270268
/*
271-
Setter-Getter for mode toggling
272-
*/
269+
Setter-Getter for mode toggling
270+
*/
273271
mode: function (option) {
274272
if (arguments.length) {
275273
method = option;
@@ -280,10 +278,10 @@ socr.dataTable = function () {
280278
switchMode: function () {
281279
$('#fetchinstant').click(function () {
282280
tableparse.mode('sync');
283-
})
281+
});
284282
$('#fetchasync').click(function () {
285283
tableparse.mode('async');
286-
})
284+
});
287285
}
288286

289287

@@ -381,10 +379,8 @@ socr.dataTable = function () {
381379
$.each(options.visible, function (k, v) {
382380
$(v).show();
383381
});
384-
385382
}
386-
387-
}
383+
};
388384
/*
389385
Hookups for spreadsheet opterations
390386
*/
@@ -793,7 +789,7 @@ socr.dataTable = function () {
793789
$('#worldbank-form').find('input[type="submit"]').attr('disabled', false);
794790
$('.worldbank-response').addClass('alert-error').html('There was an error requesting data');
795791
}
796-
}
792+
};
797793

798794
$controls.find('input[value="Use Entire Dataset"]').on('click', spreadSheet.parseAll);
799795
$controls.find('.reset-spreadsheet').on('click', spreadSheet.reset);
@@ -806,7 +802,7 @@ socr.dataTable = function () {
806802
$dataTable.parent().on('mouseup', select.checkSelected);
807803
$('a.dragdrop').on('click', function () {
808804
$('#fetchURL').slideToggle();
809-
})
805+
});
810806

811807
$controls.find('.edittitles').on('click', view.editTitles);
812808
$controls.find('.firstrowtitles').on('click', spreadSheet.firstRowTitles);
@@ -823,8 +819,7 @@ socr.dataTable = function () {
823819

824820
});
825821

826-
// $('.handsontable').find('th').on('click', spreadSheet.setCol);
827-
822+
// $('.handsontable').find('th').on('click', spreadSheet.setCol);
828823

829824
spreadSheet.init();
830825
dragdrop.init();
@@ -834,5 +829,5 @@ socr.dataTable = function () {
834829
spreadSheet: spreadSheet,
835830
view: view,
836831
worldbank : worldbank,
837-
}
832+
};
838833
}();

0 commit comments

Comments
 (0)