Refactoring : tabulation with 4 spaces

This commit is contained in:
Marc Ducobu 2016-03-24 09:47:14 +01:00
parent 332ee277d3
commit e6a47ddcbc

View File

@ -1,6 +1,6 @@
/* jslint vars: true */ /* jslint vars: true */
/*jslint indent: 3 */ /*jslint indent: 4 */
/* global moment, $ */ /* global moment, $, window */
'use strict'; 'use strict';
var chill = function() { var chill = function() {
@ -107,7 +107,8 @@ var chill = function() {
}) })
.on('reset', function() { .on('reset', function() {
unsaved_data = false; unsaved_data = false;
}); })
;
$.each($(form_id).find(':input'), function(i,e) { $.each($(form_id).find(':input'), function(i,e) {
$(e).change(function() { $(e).change(function() {
@ -122,9 +123,11 @@ var chill = function() {
}); });
} }
/**
* TODO : DOC
*/
function checkNullValuesInChoices(choice_name) { function checkNullValuesInChoices(choice_name) {
var choices; var choices;
console.log(choice_name);
choices = $("input[name='"+choice_name+"']:checked"); choices = $("input[name='"+choice_name+"']:checked");
if (choices.size() === 0) { if (choices.size() === 0) {
$.each($("input[name='"+choice_name+"']"), function (i, e) { $.each($("input[name='"+choice_name+"']"), function (i, e) {
@ -133,8 +136,6 @@ var chill = function() {
} }
}); });
} }
//}
//});
} }
/** /**