Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
191e32c2
Commit
191e32c2
authored
Jun 04, 2018
by
Carsten Rose
Browse files
QuickFormQuery.php: Drag And Drop JS code - multiple instances ok
parent
d2ef62e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/QuickFormQuery.php
View file @
191e32c2
...
...
@@ -1393,9 +1393,20 @@ EOF;
private
function
getDragAndDropCode
()
{
$code
=
<<<EOF
<script type = "text/javascript" >
var dragi = new QfqNS . DragAndDrop($('.qfq-dnd-sort'));
dragi . makeSortable();
<script type="text/javascript">
$(function () {
$('.qfq-dnd-sort').each(function() {
var dndObject = new QfqNS.DragAndDrop($(this));
dndObject.makeSortable();
});
var zoni = new QfqNS.DragAndDrop($('.qfq-dnd'));
zoni.makeBasketCase();
});
</script>
EOF;
...
...
Write
Preview
Supports
Markdown
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