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