Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8a625fe8
authored
Aug 26, 2018
by
Szabolcs Gelencsér
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix toggle labels in editor
parent
d162945d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
circle/network/static/js/horizon.networktopology.js
+1
-1
circle/network/templates/network/editor.html
+6
-6
No files found.
circle/network/static/js/horizon.networktopology.js
View file @
8a625fe8
...
...
@@ -176,7 +176,7 @@ horizon.network_topology = {
// Shows/Hides graph labels
refresh_labels
:
function
()
{
var
show_labels
=
horizon
.
cookies
.
get
(
'show_labels'
)
==
'true'
;
var
show_labels
=
horizon
.
cookies
.
get
(
'show_labels'
)
==
true
;
angular
.
element
(
'.nodeLabel'
).
toggle
(
show_labels
);
},
...
...
circle/network/templates/network/editor.html
View file @
8a625fe8
...
...
@@ -49,18 +49,18 @@
<script
type=
"text/javascript"
>
{
#
TODO
:
real
cookie
storage
#
}
var
cookies
=
{}
horizon
.
cookies
=
{
data
:
{},
getObject
:
function
(
x
)
{
return
cookies
[
x
]
return
horizon
.
cookies
.
data
[
x
]
},
put
:
function
(
x
,
y
)
{
cookies
[
x
]
=
y
horizon
.
cookies
.
data
[
x
]
=
y
},
putObject
:
function
(
x
,
y
)
{
cookies
[
x
]
=
y
horizon
.
cookies
.
data
[
x
]
=
y
},
getRaw
:
function
(
x
)
{
return
cookies
[
x
]
return
horizon
.
cookies
.
data
[
x
]
},
get
:
function
(
x
)
{
return
cookies
[
x
]
return
horizon
.
cookies
.
data
[
x
]
}
};
...
...
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