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
70395d9a
Commit
70395d9a
authored
Jul 13, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set files tags client side
parent
9bfbad18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+18
-4
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
70395d9a
...
...
@@ -267,8 +267,11 @@ function Page_Distrubion(socket) {
// update html
socket_data
.
package
.
files
.
forEach
(
function
(
f
)
{
tmp
.
file
=
f
;
var
html_file
=
$
(
'
<li id="file-
'
+
f
.
orig_name
+
'
"><a title="
'
+
f
.
orig_name
+
'
" href="
'
+
Utils
.
from_view_to_hash
(
tmp
)
+
'
">
'
+
f
.
name
+
'
</a></li>
'
);
var
html_file
=
$
(
'
<li id="file-
'
+
f
.
orig_name
+
'
">
'
+
'
<a title="
'
+
f
.
orig_name
+
'
" href="
'
+
Utils
.
from_view_to_hash
(
tmp
)
+
'
">
'
+
'
<span class="status pull-right"></span>
'
+
f
.
name
+
'
</a></li>
'
);
html_file
.
on
(
'
click
'
,
function
()
{
files
.
select
(
this
);
});
...
...
@@ -335,6 +338,9 @@ function Page_Distrubion(socket) {
show
:
function
()
{
$
(
'
#files
'
).
show
();
},
set_status
:
function
(
file
,
status
)
{
$
(
'
#logs li[id="file-
'
+
file
+
'
"] .status
'
).
html
(
status
);
}
};
var
package_info
=
{
...
...
@@ -361,6 +367,14 @@ function Page_Distrubion(socket) {
return
result
;
}
if
(
socket_data
.
hasOwnProperty
(
'
tags
'
))
{
var
tags
=
socket_data
.
tags
;
for
(
var
file
in
tags
)
{
if
(
tags
.
hasOwnProperty
(
file
))
files
.
set_status
(
file
,
tags
[
file
]);
}
}
var
info
=
""
;
if
(
socket_data
.
uploader
)
...
...
@@ -661,9 +675,9 @@ function Page_Distrubion(socket) {
return
;
}
else
if
(
!
Utils
.
check_view_package
(
old_view
)
||
!
Utils
.
check_view_package
(
view
)
||
view
.
package
.
orig_name
!=
old_view
.
package
.
orig_name
)
{
// new package view
package_info
.
get
();
files
.
get
();
file
.
get
();
package_info
.
get
();
}
else
if
(
!
Utils
.
check_view_file
(
old_view
)
||
!
Utils
.
check_view_file
(
view
)
||
view
.
file
.
name
!=
old_view
.
file
.
name
)
{
// new file view
file
.
get
();
...
...
@@ -684,9 +698,9 @@ function Page_Distrubion(socket) {
var
populate
=
function
()
{
clean
();
packages
.
get
();
package_info
.
get
();
files
.
get
();
file
.
get
();
package_info
.
get
();
update
.
view
();
};
...
...
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