Commit af27a2bc authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

Start numbering at 1 instead 0.

parent ba7865c0
......@@ -44,7 +44,7 @@ var QfqNS = QfqNS || {};
var $target = $(escapedTargetSelector);
var lines = n.countLines(escapedTargetSelector);
var lines = n.countLines(escapedTargetSelector) + 1;
if (lines >= maxChildren) {
return;
......@@ -94,7 +94,7 @@ var QfqNS = QfqNS || {};
$template = $(escapedTemplateSelector);
deserializedTemplate = n.deserializeTemplateAndRetainPlaceholders($template.text());
n.expandRetainedPlaceholders(deserializedTemplate, 0);
n.expandRetainedPlaceholders(deserializedTemplate, 1);
deserializedTemplate.find('.qfq-delete-button').remove();
$element.append(deserializedTemplate);
......@@ -216,7 +216,7 @@ var QfqNS = QfqNS || {};
n.reExpandLineByLine = function ($container) {
$container.children().each(function (index) {
var $element = $(this);
n.expandRetainedPlaceholders($element, index);
n.expandRetainedPlaceholders($element, index + 1);
});
};
})(QfqNS);
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment