Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
af27a2bc
Commit
af27a2bc
authored
Feb 17, 2017
by
Rafael Ostertag
Browse files
Start numbering at 1 instead 0.
parent
ba7865c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/FieldTemplate.js
View file @
af27a2bc
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment