Fix JS codestyle

This commit is contained in:
Romain Neutron
2013-11-12 12:49:23 +01:00
parent 51fb364d13
commit 9fa95db23c
78 changed files with 5184 additions and 6309 deletions

View File

@@ -12,20 +12,20 @@ define([
"underscore",
"backbone",
"i18n"
], function($, _, Backbone, i18n) {
], function ($, _, Backbone, i18n) {
var FieldErrorView = Backbone.View.extend({
initialize: function() {
initialize: function () {
AdminFieldApp.errorManager.on("add-error", this.render, this);
AdminFieldApp.errorManager.on("remove-error", this.render, this);
},
render: function() {
render: function () {
var messages = [];
var errors = AdminFieldApp.errorManager.all();
_.each(_.groupBy(errors, function(error) {
_.each(_.groupBy(errors, function (error) {
return error.model.get("name");
}), function(groupedErrors) {
_.each(groupedErrors, function(error) {
}), function (groupedErrors) {
_.each(groupedErrors, function (error) {
messages.push(i18n.t("field_error", {
postProcess: "sprintf",
sprintf: [error.model.get("name")]