Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
de3f9733
authored
Oct 19, 2015
by
Estók Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setty: code cleanup.
parent
16f13b68
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
circle/setty/static/setty/setty.js
+2
-8
No files found.
circle/setty/static/setty/setty.js
View file @
de3f9733
...
...
@@ -61,12 +61,7 @@ jsPlumb.ready(function(){
* Function for displaying information panel content.
*/
addInfo
=
function
(
title
,
info
,
type
,
element
){
div
=
'<div class="row"><div class="col-xs-12 text-center"><h3>'
+
title
+
'</h3></div></div> <div class="row"><div class="col-xs-12">'
+
'<textarea class="form-control" rows="30" id="infoInput"'
+
'placeholder="Config data"'
+
(
type
==
"info"
?
'readonly'
:
''
)
+
'>'
+
'</textarea></div></div>'
;
div
=
'<div class="row"><div class="col-xs-12 text-center"><h3>'
+
title
+
'</h3></div></div> <div class="row"><div class="col-xs-12">'
+
'<textarea class="form-control" rows="30" id="infoInput"'
+
'placeholder="Config data"'
+
(
type
==
"info"
?
'readonly'
:
''
)
+
'>'
+
'</textarea></div></div>'
;
if
(
type
==
"element"
)
div
+=
' <div class="row text-center"><label>Endpoints</label></div><div class="row">'
...
...
@@ -368,8 +363,7 @@ jsPlumb.ready(function(){
$
(
"#informationContainer"
).
empty
();
});
jsPlumbInstance
.
bind
(
"click"
,
function
(
info
){
addInfo
(
$
(
"#"
+
info
.
sourceId
.
split
(
'_'
)[
1
]).
attr
(
"alt"
)
+
' - '
+
$
(
"#"
+
info
.
targetId
.
split
(
'_'
)[
1
]).
attr
(
"alt"
),
addInfo
(
$
(
"#"
+
info
.
sourceId
.
split
(
'_'
)[
1
]).
attr
(
"alt"
)
+
' - '
+
$
(
"#"
+
info
.
targetId
.
split
(
'_'
)[
1
]).
attr
(
"alt"
),
info
.
parameters
,
"connection"
,
info
);
...
...
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