blob: a97b1da697f13a355e1e7bf81992893c792f1035 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Generated by CoffeeScript 1.6.3
(function() {
var DependencyInput;
DependencyInput = (function() {
function DependencyInput(group_order, field_order) {
this.group_order = group_order;
this.field_order = field_order;
this.template = "<span class=\"_parentesis _parentesis_open\">(</span><span class=\"_parentesis _parentesis_close\">)</span>\n<input\n class=\"span2 droppable dependence_value\"\n type=\"text\"\n name=\"groups.[[ group_order ]].fields.[[ order ]].dependence.values\"\n value=\"[[ value ]]\"\n placeholder=\"nro. ID\" />\n<span class=\"_parentesis _parentesis_open\">(</span><span class=\"_parentesis _parentesis_close\">)</span>";
this.value = "";
}
DependencyInput.prototype.render = function() {
var context, input, widget;
context = {
"value": this.value,
"order": this.field_order,
"group_order": this.group_order
};
Mustache.tags = ['[[', ']]'];
widget = jQuery(Mustache.render(this.template, context));
input = $(widget[3]);
input.popover({
title: "title",
content: "content"
});
return widget;
};
return DependencyInput;
})();
window.DependencyInput = DependencyInput;
}).call(this);
|