Fix JS codestyle

This commit is contained in:
Romain Neutron
2013-11-12 15:07:16 +01:00
parent 3cf2cbd6f1
commit 1a2487d398

View File

@@ -12,14 +12,14 @@ define([
"underscore",
"backbone",
"i18n"
], function($, _, Backbone, i18n, bootstrap) {
], function ($, _, Backbone, i18n, bootstrap) {
var DcFieldsView = Backbone.View.extend({
tagName: "div",
className: "input-append",
initialize : function (options) {
initialize: function (options) {
this.field = options.field;
},
render: function() {
render: function () {
var template = _.template($("#dc_fields_template").html(), {
dces_elements: this.collection.toJSON(),
field: this.field.toJSON()
@@ -28,7 +28,7 @@ define([
this.$el.html(template);
var index = $("#dces-element", this.$el)[0].selectedIndex - 1;
if (index > 0 ) {
if (index > 0) {
$(".dces-help-block", AdminFieldApp.$rightBlock).html(
this.collection.at(index).get("definition")
);