Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
1520a031
Commit
1520a031
authored
6 years ago
by
Carsten Rose
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/dragAndDrop' into dragAndDrop
parents
123a701d
1529f813
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/PROTOCOL.md
+4
-5
4 additions, 5 deletions
doc/PROTOCOL.md
javascript/src/DragAndDrop.js
+4
-4
4 additions, 4 deletions
javascript/src/DragAndDrop.js
with
8 additions
and
9 deletions
doc/PROTOCOL.md
+
4
−
5
View file @
1520a031
...
...
@@ -501,12 +501,11 @@ add data-dnd-id to a reference you can handle (probably SQL id)
Request will be sent containing following information:
{"id":2,"value":50,"position":5,"setTo":"after","otherId":4}
id = id of the dragged object
value = original value of the dragged object
position = counted original position of the dragged object
dragId = id of the dragged object
dragPosition = counted original position of the dragged object
setTo = "after" or "before"
oth
erId = id of the element the dragged element is now before or after.
oth
erPosition = Position of
other
element.
hov
erId = id of the element the dragged element is now
hovering, meaning
before or after.
hov
erPosition = Position of
currently hovered
element.
## Glossary
...
...
This diff is collapsed.
Click to expand it.
javascript/src/DragAndDrop.js
+
4
−
4
View file @
1520a031
...
...
@@ -122,11 +122,11 @@ var QfqNS = QfqNS || {};
n
.
DragAndDrop
.
prototype
.
_buildOrderUpdate
=
function
(
$object
,
position
,
otherId
,
otherPos
)
{
var
jObject
=
{};
jObject
.
i
d
=
$object
.
data
(
"
dnd-id
"
);
jObject
.
p
osition
=
$object
.
data
(
"
dnd-position
"
);
jObject
.
dragI
d
=
$object
.
data
(
"
dnd-id
"
);
jObject
.
dragP
osition
=
$object
.
data
(
"
dnd-position
"
);
jObject
.
setTo
=
position
;
jObject
.
oth
erId
=
otherId
;
jObject
.
oth
erPosition
=
otherPos
;
jObject
.
hov
erId
=
otherId
;
jObject
.
hov
erPosition
=
otherPos
;
this
.
_sendToAPI
(
jObject
);
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment