mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 21:13:26 +00:00
Fix JS codestyle
This commit is contained in:
@@ -12,14 +12,14 @@ define([
|
|||||||
"underscore",
|
"underscore",
|
||||||
"backbone",
|
"backbone",
|
||||||
"i18n"
|
"i18n"
|
||||||
], function($, _, Backbone, i18n, bootstrap) {
|
], function ($, _, Backbone, i18n, bootstrap) {
|
||||||
var DcFieldsView = Backbone.View.extend({
|
var DcFieldsView = Backbone.View.extend({
|
||||||
tagName: "div",
|
tagName: "div",
|
||||||
className: "input-append",
|
className: "input-append",
|
||||||
initialize : function (options) {
|
initialize: function (options) {
|
||||||
this.field = options.field;
|
this.field = options.field;
|
||||||
},
|
},
|
||||||
render: function() {
|
render: function () {
|
||||||
var template = _.template($("#dc_fields_template").html(), {
|
var template = _.template($("#dc_fields_template").html(), {
|
||||||
dces_elements: this.collection.toJSON(),
|
dces_elements: this.collection.toJSON(),
|
||||||
field: this.field.toJSON()
|
field: this.field.toJSON()
|
||||||
@@ -28,7 +28,7 @@ define([
|
|||||||
this.$el.html(template);
|
this.$el.html(template);
|
||||||
|
|
||||||
var index = $("#dces-element", this.$el)[0].selectedIndex - 1;
|
var index = $("#dces-element", this.$el)[0].selectedIndex - 1;
|
||||||
if (index > 0 ) {
|
if (index > 0) {
|
||||||
$(".dces-help-block", AdminFieldApp.$rightBlock).html(
|
$(".dces-help-block", AdminFieldApp.$rightBlock).html(
|
||||||
this.collection.at(index).get("definition")
|
this.collection.at(index).get("definition")
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user