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
f8da1df2
Commit
f8da1df2
authored
Sep 16, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'github/master' into portable
parents
45bd3237
a1ee36bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+2
-17
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
f8da1df2
...
@@ -123,12 +123,12 @@ function Page_Distrubion(socket) {
...
@@ -123,12 +123,12 @@ function Page_Distrubion(socket) {
label
=
''
;
label
=
''
;
var
window_title
=
null
;
var
window_title
=
null
;
if
(
Utils
.
check_view_file
(
view
))
{
if
(
Utils
.
check_view_file
(
view
))
{
var
complete_name
=
view
.
file
.
orig_
name
;
var
complete_name
=
view
.
package
.
orig_name
+
'
.
'
+
view
.
file
.
name
;
window_title
=
complete_name
;
window_title
=
complete_name
;
label
=
complete_name
;
label
=
complete_name
;
if
(
!
view
.
file
.
path
)
if
(
!
view
.
file
.
path
)
view
.
file
.
path
=
config
.
paths
.
debomatic
+
'
/
'
+
view
.
distribution
.
name
+
'
/pool/
'
+
view
.
package
.
orig_name
+
'
/
'
+
complete_name
;
view
.
file
.
path
=
config
.
paths
.
debomatic
+
'
/
'
+
view
.
distribution
.
name
+
'
/pool/
'
+
view
.
package
.
orig_name
+
'
/
'
+
complete_name
;
label
+=
'
<a
id="download-file" class="btn btn-link btn-lg" data-toggle="tooltip" title="Download
">
'
+
label
+=
'
<a
class="btn btn-link btn-lg" data-toggle="tooltip" title="Download" href="
'
+
view
.
file
.
path
+
'
">
'
+
'
<span class="glyphicon glyphicon-download-alt"></span></a>
'
;
'
<span class="glyphicon glyphicon-download-alt"></span></a>
'
;
if
(
current_file_in_preview
)
{
if
(
current_file_in_preview
)
{
var
view_all
=
$
(
'
<a id="get-whole-file" data-toggle="tooltip" class="btn btn-link btn-lg" title="View the whole file"></a>
'
);
var
view_all
=
$
(
'
<a id="get-whole-file" data-toggle="tooltip" class="btn btn-link btn-lg" title="View the whole file"></a>
'
);
...
@@ -151,21 +151,6 @@ function Page_Distrubion(socket) {
...
@@ -151,21 +151,6 @@ function Page_Distrubion(socket) {
file
.
get
(
true
);
file
.
get
(
true
);
$
(
this
).
fadeOut
(
'
fast
'
);
$
(
this
).
fadeOut
(
'
fast
'
);
});
});
// set onclick downlaod file
$
(
'
#download-file
'
).
on
(
'
click
'
,
function
(
event
)
{
var
url
=
view
.
file
.
path
;
if
(
!
current_file_in_preview
)
{
url
=
'
data:text/plain;charset=utf-8,
'
+
encodeURIComponent
(
$
(
'
#file .content
'
).
text
());
}
$
(
this
)
.
attr
({
'
download
'
:
view
.
file
.
orig_name
,
'
href
'
:
url
,
'
target
'
:
'
_blank
'
});
});
},
},
clean
:
function
()
{
clean
:
function
()
{
$
(
'
#title
'
).
html
(
''
);
$
(
'
#title
'
).
html
(
''
);
...
...
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