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
1f60dffe
Commit
1f60dffe
authored
Mar 10, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed local data from update and populate
parent
eae8dc7a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
45 deletions
+32
-45
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+32
-45
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
1f60dffe
...
@@ -216,28 +216,21 @@ function Page_Distrubion()
...
@@ -216,28 +216,21 @@ function Page_Distrubion()
}
}
var
update
=
{
var
update
=
{
page
:
function
(
data
,
old_data
)
{
page
:
function
(
old_data
)
{
if
(
!
old_data
)
{
if
(
!
old_data
if
(
!
data
)
||
!
Utils
.
check_data_distribution
(
old_data
)
||
!
Utils
.
check_data_distribution
(
data
)
||
data
.
distribution
.
name
!=
old_data
.
distribution
.
name
)
{
// new distribution view
populate
()
populate
()
else
populate
(
data
)
return
;
}
else
{
if
(
!
Utils
.
check_data_distribution
(
old_data
)
||
!
Utils
.
check_data_distribution
(
data
)
||
data
.
distribution
.
name
!=
old_data
.
distribution
.
name
)
{
clean
()
populate
(
data
)
return
return
}
}
else
if
(
else
if
(
!
Utils
.
check_data_package
(
old_data
)
!
Utils
.
check_data_package
(
old_data
)
||
||
!
Utils
.
check_data_package
(
data
)
!
Utils
.
check_data_package
(
data
)
||
||
data
.
package
.
orig_name
!=
old_data
.
package
.
orig_name
data
.
package
.
orig_name
!=
old_data
.
package
.
orig_name
)
)
{
{
// new pacakge view
file
.
clean
()
file
.
clean
()
files
.
get
()
files
.
get
()
if
(
Utils
.
check_data_package
(
data
))
{
if
(
Utils
.
check_data_package
(
data
))
{
...
@@ -245,20 +238,16 @@ function Page_Distrubion()
...
@@ -245,20 +238,16 @@ function Page_Distrubion()
window
.
location
.
hash
+=
'
/datestamp
'
window
.
location
.
hash
+=
'
/datestamp
'
}
}
}
}
else
if
(
else
if
(
!
Utils
.
check_data_file
(
old_data
)
!
Utils
.
check_data_file
(
old_data
)
||
||
!
Utils
.
check_data_file
(
data
)
!
Utils
.
check_data_file
(
data
)
||
||
data
.
file
.
name
!=
old_data
.
file
.
name
data
.
file
.
name
!=
old_data
.
file
.
name
)
)
{
{
// new file view
file
.
get
()
file
.
get
()
}
}
update
.
view
(
data
)
update
.
view
(
data
)
}
},
},
view
:
function
(
data
)
{
view
:
function
()
{
if
(
!
data
)
data
=
Utils
.
from_hash_to_data
()
title
.
set
()
title
.
set
()
breadcrumb
.
update
()
breadcrumb
.
update
()
select
()
select
()
...
@@ -266,14 +255,12 @@ function Page_Distrubion()
...
@@ -266,14 +255,12 @@ function Page_Distrubion()
}
}
}
}
var
populate
=
function
(
data
)
{
var
populate
=
function
()
{
clean
()
clean
()
if
(
!
data
)
data
=
Utils
.
from_hash_to_data
()
packages
.
get
()
packages
.
get
()
files
.
get
()
files
.
get
()
file
.
get
()
file
.
get
()
update
.
view
(
data
)
update
.
view
()
}
}
this
.
init
=
function
(
mysocket
)
{
this
.
init
=
function
(
mysocket
)
{
...
@@ -300,12 +287,12 @@ function Page_Distrubion()
...
@@ -300,12 +287,12 @@ function Page_Distrubion()
__check_hash_makes_sense
()
__check_hash_makes_sense
()
var
old_data
=
data
var
old_data
=
data
data
=
Utils
.
from_hash_to_data
()
data
=
Utils
.
from_hash_to_data
()
update
.
page
(
data
,
old_data
)
update
.
page
(
old_data
)
});
});
$
(
window
).
on
(
'
load
'
,
function
(){
$
(
window
).
on
(
'
load
'
,
function
(){
__check_hash_makes_sense
()
__check_hash_makes_sense
()
populate
(
data
)
populate
()
});
});
}
}
...
...
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