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
533e56e1
Commit
533e56e1
authored
Mar 09, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if hash has sense
parent
f170bccb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
debomatic-webui/public/javascripts/main.js
debomatic-webui/public/javascripts/main.js
+8
-0
No files found.
debomatic-webui/public/javascripts/main.js
View file @
533e56e1
...
@@ -10,6 +10,12 @@ socket.on('distributions', function(distributions) {
...
@@ -10,6 +10,12 @@ socket.on('distributions', function(distributions) {
if
(
window
.
location
.
pathname
==
'
/distribution
'
)
{
if
(
window
.
location
.
pathname
==
'
/distribution
'
)
{
function
__check_hash_has_sense
()
{
info
=
window
.
location
.
hash
.
split
(
'
/
'
)
if
(
info
.
length
==
2
)
window
.
location
.
hash
=
info
[
0
]
}
var
old_data
=
Utils
.
from_hash_to_data
()
var
old_data
=
Utils
.
from_hash_to_data
()
socket
.
on
(
'
distribution_packages
'
,
function
(
data
){
socket
.
on
(
'
distribution_packages
'
,
function
(
data
){
...
@@ -29,12 +35,14 @@ if (window.location.pathname == '/distribution') {
...
@@ -29,12 +35,14 @@ if (window.location.pathname == '/distribution') {
})
})
$
(
window
).
on
(
'
hashchange
'
,
function
()
{
$
(
window
).
on
(
'
hashchange
'
,
function
()
{
__check_hash_has_sense
()
data
=
Utils
.
from_hash_to_data
()
data
=
Utils
.
from_hash_to_data
()
Page_Distrubion
.
update
(
data
,
old_data
)
Page_Distrubion
.
update
(
data
,
old_data
)
old_data
=
data
old_data
=
data
});
});
$
(
window
).
on
(
'
load
'
,
function
(){
$
(
window
).
on
(
'
load
'
,
function
(){
__check_hash_has_sense
()
Page_Distrubion
.
update
(
old_data
)
Page_Distrubion
.
update
(
old_data
)
$
(
window
).
scroll
(
function
()
{
$
(
window
).
scroll
(
function
()
{
var
offset
=
$
(
"
#file
"
).
offset
();
var
offset
=
$
(
"
#file
"
).
offset
();
...
...
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