sync
This commit is contained in:
@ -5,8 +5,8 @@
|
||||
};
|
||||
|
||||
var __proto = ctor.prototype;
|
||||
__proto.createContent = function (change) {
|
||||
var content = $('<div style="margin-bottom: 20px"></div>');
|
||||
__proto.createContent = function (change, answerchange) {
|
||||
var content = $('<div class="section-item" style="margin-bottom: 20px"></div>');
|
||||
|
||||
if (this.section.StaticPictures && this.section.StaticPictures.length > 0) {
|
||||
var div_pic = $('<div style="background: #eee; padding: 2px 2px;"></div>');
|
||||
@ -47,15 +47,9 @@
|
||||
|| question.QuestionType === Question.types.AssetStatus;
|
||||
var medias = isPicture && answer && this.report.Medias.filter(function (m) { return Question.equals(m.AnswerId, answer.Id) });
|
||||
|
||||
var qContent;
|
||||
if (question.QuestionType === Question.types.FuelRecords
|
||||
&& (question.SubType === Question.fueltypes.Quantity ||
|
||||
question.SubType === Question.fueltypes.UnitCost)) {
|
||||
qContent = q.createContent(answer, medias, change);
|
||||
} else {
|
||||
qContent = q.createContent(answer, medias);
|
||||
}
|
||||
var qContent = q.createContent(answer, answerchange, change, medias);
|
||||
qContent.data('question', q);
|
||||
qContent.data('section', this.section);
|
||||
content.append(qContent);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user