mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Fix JS codestyle
This commit is contained in:
@@ -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")]
|
||||
|
Reference in New Issue
Block a user