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
7934dcc4
Commit
7934dcc4
authored
Mar 13, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix no datestamp load on package double click
parent
2bfc4512
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+5
-8
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
7934dcc4
...
@@ -44,7 +44,8 @@ function Page_Distrubion(socket)
...
@@ -44,7 +44,8 @@ function Page_Distrubion(socket)
tmp
.
file
=
null
tmp
.
file
=
null
socket_data
.
distribution
.
packages
.
forEach
(
function
(
p
){
socket_data
.
distribution
.
packages
.
forEach
(
function
(
p
){
tmp
.
package
=
p
tmp
.
package
=
p
$
(
'
#packages ul
'
).
append
(
'
<li id="package-
'
+
p
.
orig_name
+
'
"><a href="
'
+
Utils
.
from_data_to_hash
(
tmp
)
+
'
">
'
+
p
.
name
+
'
<span>
'
+
p
.
version
+
'
</span></a></li>
'
)
// get datestamp if package is clicked
$
(
'
#packages ul
'
).
append
(
'
<li id="package-
'
+
p
.
orig_name
+
'
"><a href="
'
+
Utils
.
from_data_to_hash
(
tmp
)
+
'
/datestamp">
'
+
p
.
name
+
'
<span>
'
+
p
.
version
+
'
</span></a></li>
'
)
})
})
packages
.
select
()
packages
.
select
()
},
},
...
@@ -295,14 +296,10 @@ function Page_Distrubion(socket)
...
@@ -295,14 +296,10 @@ function Page_Distrubion(socket)
||
data
.
package
.
orig_name
!=
old_data
.
package
.
orig_name
||
data
.
package
.
orig_name
!=
old_data
.
package
.
orig_name
)
)
{
// new pacakge view
{
// new pacakge view
file
.
clean
()
files
.
get
()
files
.
get
()
if
(
Utils
.
check_data_package
(
data
)
// I will always get datestamp file from package view
&&
window
.
location
.
hash
.
split
(
'
/
'
).
length
<=
3
)
file
.
clean
()
{
file
.
get
()
// I will always get datastamp file from package
window
.
location
.
hash
+=
'
/datestamp
'
}
}
}
else
if
(
!
Utils
.
check_data_file
(
old_data
)
else
if
(
!
Utils
.
check_data_file
(
old_data
)
||
!
Utils
.
check_data_file
(
data
)
||
!
Utils
.
check_data_file
(
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