Skip to content

Commit eaa9734

Browse files
committed
Fixes Typo. Closes #45
1 parent ac4b362 commit eaa9734

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
*/
@@ -786,7 +782,7 @@ socr.dataTable = function () {
786782
$('#worldbank-form').find('input[type="submit"]').attr('disabled', false);
787783
$('.worldbank-response').addClass('alert-error').html('There was an error requesting data');
788784
}
789-
}
785+
};
790786

791787
$controls.find('input[value="Use Entire Dataset"]').on('click', spreadSheet.parseAll);
792788
$controls.find('.reset-spreadsheet').on('click', spreadSheet.reset);
@@ -799,7 +795,7 @@ socr.dataTable = function () {
799795
$dataTable.parent().on('mouseup', select.checkSelected);
800796
$('a.dragdrop').on('click', function () {
801797
$('#fetchURL').slideToggle();
802-
})
798+
});
803799

804800
$controls.find('.edittitles').on('click', view.editTitles);
805801
$controls.find('.firstrowtitles').on('click', spreadSheet.firstRowTitles);
@@ -816,8 +812,7 @@ socr.dataTable = function () {
816812

817813
});
818814

819-
// $('.handsontable').find('th').on('click', spreadSheet.setCol);
820-
815+
// $('.handsontable').find('th').on('click', spreadSheet.setCol);
821816

822817
spreadSheet.init();
823818
dragdrop.init();
@@ -827,5 +822,5 @@ socr.dataTable = function () {
827822
spreadSheet: spreadSheet,
828823
view: view,
829824
worldbank : worldbank,
830-
}
825+
};
831826
}();

0 commit comments

Comments
 (0)