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
23d2a43c
Commit
23d2a43c
authored
Mar 17, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
providing window with a rationale title
parent
245f5563
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+7
-0
debomatic-webui/public/javascripts/page_generic.js
debomatic-webui/public/javascripts/page_generic.js
+8
-0
debomatic-webui/public/javascripts/preferences.js
debomatic-webui/public/javascripts/preferences.js
+2
-0
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
23d2a43c
...
@@ -63,11 +63,14 @@ function Page_Distrubion(socket)
...
@@ -63,11 +63,14 @@ function Page_Distrubion(socket)
set
:
function
(
label
)
{
set
:
function
(
label
)
{
if
(
label
)
{
if
(
label
)
{
$
(
'
#title
'
).
html
(
label
)
$
(
'
#title
'
).
html
(
label
)
page_generic
.
set_window_title
(
label
)
return
return
}
}
var
label
=
''
var
label
=
''
var
window_title
=
null
if
(
Utils
.
check_view_file
(
view
))
{
if
(
Utils
.
check_view_file
(
view
))
{
var
complete_name
=
view
.
package
.
orig_name
+
'
.
'
+
view
.
file
.
name
var
complete_name
=
view
.
package
.
orig_name
+
'
.
'
+
view
.
file
.
name
window_title
=
complete_name
if
(
!
view
.
file
.
path
)
if
(
!
view
.
file
.
path
)
view
.
file
.
path
=
config
.
paths
.
debomatic
+
'
/
'
+
view
.
distribution
.
name
+
'
/pool/
'
+
view
.
package
.
orig_name
+
'
/
'
+
complete_name
view
.
file
.
path
=
config
.
paths
.
debomatic
+
'
/
'
+
view
.
distribution
.
name
+
'
/pool/
'
+
view
.
package
.
orig_name
+
'
/
'
+
complete_name
label
=
complete_name
+
'
\
label
=
complete_name
+
'
\
...
@@ -80,9 +83,13 @@ function Page_Distrubion(socket)
...
@@ -80,9 +83,13 @@ function Page_Distrubion(socket)
else
if
(
Utils
.
check_view_distribution
(
view
))
else
if
(
Utils
.
check_view_distribution
(
view
))
label
=
view
.
distribution
.
name
label
=
view
.
distribution
.
name
$
(
'
#title
'
).
html
(
label
)
$
(
'
#title
'
).
html
(
label
)
if
(
window_title
)
label
=
window_title
page_generic
.
set_window_title
(
label
)
},
},
clean
:
function
()
{
clean
:
function
()
{
$
(
'
#title
'
).
html
(
''
)
$
(
'
#title
'
).
html
(
''
)
page_generic
.
set_window_title
()
}
}
}
}
...
...
debomatic-webui/public/javascripts/page_generic.js
View file @
23d2a43c
...
@@ -106,6 +106,14 @@ function Page_Generic(socket)
...
@@ -106,6 +106,14 @@ function Page_Generic(socket)
}
}
}
}
this
.
set_window_title
=
function
(
label
)
{
var
window_title_separator
=
'
\
u00ab
'
if
(
label
)
window
.
document
.
title
=
label
+
window_title_separator
+
config
.
title
else
window
.
document
.
title
=
config
.
title
}
// update distributions
// update distributions
socket
.
on
(
_e
.
broadcast
.
distributions
,
function
(
socket_distributions
)
{
socket
.
on
(
_e
.
broadcast
.
distributions
,
function
(
socket_distributions
)
{
debug_socket
(
"
received
"
,
_e
.
broadcast
.
distributions
,
socket_distributions
)
debug_socket
(
"
received
"
,
_e
.
broadcast
.
distributions
,
socket_distributions
)
...
...
debomatic-webui/public/javascripts/preferences.js
View file @
23d2a43c
...
@@ -22,6 +22,8 @@ function Preferences() {
...
@@ -22,6 +22,8 @@ function Preferences() {
// init prefence page
// init prefence page
this
.
initPage
=
function
()
{
this
.
initPage
=
function
()
{
page_generic
.
set_window_title
(
"
Preferences
"
)
// set view according with config.preferences
// set view according with config.preferences
for
(
key
in
config
.
preferences
)
{
for
(
key
in
config
.
preferences
)
{
var
element
=
$
(
"
#preferences #
"
+
key
)
var
element
=
$
(
"
#preferences #
"
+
key
)
...
...
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