Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autorensystem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
MOTIVATE
autorensystem
Commits
279a7e60
Commit
279a7e60
authored
9 years ago
by
hjank
Browse files
Options
Downloads
Patches
Plain Diff
! fixed bug in relationTab: select now displays the right label choice for connection
parent
1cb758c3
Branches
master
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/authoring/controllers/canvasController.js
+2
-3
2 additions, 3 deletions
js/authoring/controllers/canvasController.js
js/authoring/controllers/tabs/relationTabController.js
+3
-1
3 additions, 1 deletion
js/authoring/controllers/tabs/relationTabController.js
with
5 additions
and
4 deletions
js/authoring/controllers/canvasController.js
+
2
−
3
View file @
279a7e60
...
...
@@ -72,15 +72,14 @@ function initPlumbCanvas() {
// c = connection element
// e = event
inst
.
bind
(
"
click
"
,
function
(
c
,
e
)
{
activateConnection
(
c
);
// needed to prevent clicking the container as well
e
.
stopPropagation
();
activateConnection
(
c
);
});
// triggered if unit container, i.e. canvas is clicked
$
(
"
#container
"
).
on
(
"
click
"
,
function
()
{
$
(
"
#container
"
).
on
(
"
click
"
,
function
(
event
)
{
if
(
connectionIsClicked
)
return
false
;
...
...
This diff is collapsed.
Click to expand it.
js/authoring/controllers/tabs/relationTabController.js
+
3
−
1
View file @
279a7e60
...
...
@@ -81,8 +81,10 @@ function fillRelationTab(connection) {
showRelationTab
();
// show right selection of the current label in selection bar
var
thisScenario
=
authorSystemContent
.
getScenario
(
$
(
"
#lname
"
)[
0
].
innerHTML
);
var
thisConnection
=
thisScenario
.
getConnectionByID
(
connection
.
connection
.
id
);
$
(
"
#selectRelations
"
).
children
(
"
option
"
).
each
(
function
()
{
if
(
$
(
this
)[
0
].
value
.
toUpperCase
()
==
label
.
label
)
{
if
(
$
(
this
)[
0
].
value
.
toUpperCase
()
==
thisConnection
.
getLabel
().
toLowerCase
()
)
{
$
(
"
#selectRelations
"
).
select2
(
"
data
"
,
{
id
:
$
(
this
)[
0
].
value
,
text
:
$
(
this
)[
0
].
innerHTML
...
...
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