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
e539a6d6
Commit
e539a6d6
authored
Apr 07, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update sticky offset when sidebar gets new contents
parent
77fd9f56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+8
-2
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
e539a6d6
...
@@ -113,6 +113,7 @@ function Page_Distrubion(socket)
...
@@ -113,6 +113,7 @@ function Page_Distrubion(socket)
$
(
'
#packages ul
'
).
append
(
'
<li class="text-muted">No packages yet</li>
'
)
$
(
'
#packages ul
'
).
append
(
'
<li class="text-muted">No packages yet</li>
'
)
}
}
packages
.
show
()
packages
.
show
()
sticky
.
updateOffset
()
},
},
clean
:
function
()
{
clean
:
function
()
{
$
(
'
#packages ul
'
).
html
(
''
)
$
(
'
#packages ul
'
).
html
(
''
)
...
@@ -205,6 +206,7 @@ function Page_Distrubion(socket)
...
@@ -205,6 +206,7 @@ function Page_Distrubion(socket)
$
(
'
#sources
'
).
show
()
$
(
'
#sources
'
).
show
()
}
}
files
.
show
()
files
.
show
()
sticky
.
updateOffset
()
},
},
clean
:
function
()
{
clean
:
function
()
{
$
(
'
#logs ul
'
).
html
(
''
);
$
(
'
#logs ul
'
).
html
(
''
);
...
@@ -313,6 +315,7 @@ function Page_Distrubion(socket)
...
@@ -313,6 +315,7 @@ function Page_Distrubion(socket)
sticky
.
show
()
sticky
.
show
()
}
else
{
}
else
{
sticky
.
hide
()
sticky
.
hide
()
sticky
.
updateOffset
()
}
}
},
},
start
:
function
()
{
start
:
function
()
{
...
@@ -339,8 +342,7 @@ function Page_Distrubion(socket)
...
@@ -339,8 +342,7 @@ function Page_Distrubion(socket)
$
(
"
#sticky-package
"
).
fadeOut
(
150
)
$
(
"
#sticky-package
"
).
fadeOut
(
150
)
},
},
update
:
function
()
{
update
:
function
()
{
var
sidebar
=
$
(
"
#files
"
)
sticky
.
updateOffset
()
sidebarOffset
=
sidebar
.
offset
().
top
if
(
Utils
.
check_view_distribution
(
view
))
if
(
Utils
.
check_view_distribution
(
view
))
$
(
"
#sticky-package .distribution
"
).
html
(
view
.
distribution
.
name
)
$
(
"
#sticky-package .distribution
"
).
html
(
view
.
distribution
.
name
)
if
(
Utils
.
check_view_package
(
view
))
{
if
(
Utils
.
check_view_package
(
view
))
{
...
@@ -349,6 +351,10 @@ function Page_Distrubion(socket)
...
@@ -349,6 +351,10 @@ function Page_Distrubion(socket)
sticky
.
set_status
()
sticky
.
set_status
()
}
}
},
},
updateOffset
:
function
()
{
var
sidebar
=
$
(
"
#files
"
)
sidebarOffset
=
sidebar
.
offset
().
top
},
set_status
:
function
(
status_data
)
{
set_status
:
function
(
status_data
)
{
if
(
!
status_data
)
{
if
(
!
status_data
)
{
status_data
=
{}
status_data
=
{}
...
...
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