Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
59aabfde
Commit
59aabfde
authored
Mar 14, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed init function (useless) and added header() to show/hide header according with preferences
parent
ee9f86a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
27 deletions
+35
-27
debomatic-webui/public/javascripts/main.js
debomatic-webui/public/javascripts/main.js
+1
-1
debomatic-webui/public/javascripts/page_generic.js
debomatic-webui/public/javascripts/page_generic.js
+34
-26
No files found.
debomatic-webui/public/javascripts/main.js
View file @
59aabfde
...
...
@@ -2,7 +2,7 @@ var socket = io.connect('//' + config.hostname );
var
preferences
=
new
Preferences
()
new
Page_Generic
().
init
(
socket
)
var
page_generic
=
new
Page_Generic
(
socket
)
if
(
window
.
location
.
pathname
==
config
.
paths
.
distribution
)
{
new
Page_Distrubion
(
socket
).
start
()
...
...
debomatic-webui/public/javascripts/page_generic.js
View file @
59aabfde
function
Page_Generic
()
function
Page_Generic
(
socket
)
{
var
socket
;
var
_e
=
config
.
events
function
__get_status_html
(
status_package
)
{
var
s
=
status_package
...
...
@@ -88,10 +88,16 @@ function Page_Generic()
},
}
this
.
init
=
function
(
mysocket
)
{
var
_e
=
config
.
events
socket
=
mysocket
this
.
header
=
function
()
{
if
(
config
.
preferences
.
header
)
{
$
(
"
#pageheader
"
).
show
()
$
(
"
.navbar .home-link
"
).
hide
()
}
else
{
$
(
"
#pageheader
"
).
hide
()
$
(
"
.navbar .home-link
"
).
show
()
}
}
// update distributions
socket
.
on
(
_e
.
broadcast
.
distributions
,
function
(
socket_distributions
)
{
...
...
@@ -117,5 +123,7 @@ function Page_Generic()
if
(
window
.
location
.
pathname
!=
config
.
paths
.
distribution
)
{
$
(
"
.navbar li a[href='
"
+
window
.
location
.
pathname
+
"
']
"
).
parent
().
addClass
(
"
active
"
)
}
}
this
.
header
()
}
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