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
9721e16e
Commit
9721e16e
authored
Mar 14, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added an error view
parent
45cf3f04
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
5 deletions
+23
-5
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+23
-5
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
9721e16e
...
...
@@ -51,7 +51,11 @@ function Page_Distrubion(socket)
}
var
title
=
{
set
:
function
()
{
set
:
function
(
label
)
{
if
(
label
)
{
$
(
'
#title
'
).
html
(
label
)
return
}
var
label
=
''
if
(
Utils
.
check_view_file
(
view
))
{
var
complete_name
=
view
.
package
.
orig_name
+
'
.
'
+
view
.
file
.
name
...
...
@@ -167,7 +171,7 @@ function Page_Distrubion(socket)
})
$
(
'
#sources
'
).
show
()
}
$
(
'
#files
'
)
.
show
()
files
.
show
()
},
clean
:
function
()
{
$
(
'
#logs ul
'
).
html
(
''
);
...
...
@@ -176,7 +180,7 @@ function Page_Distrubion(socket)
$
(
'
#debs
'
).
hide
();
$
(
'
#sources ul
'
).
html
(
''
)
$
(
'
#sources
'
).
hide
()
$
(
'
#files
'
)
.
hide
()
files
.
hide
()
},
get
:
function
()
{
if
(
Utils
.
check_view_package
(
view
))
{
...
...
@@ -187,6 +191,7 @@ function Page_Distrubion(socket)
}
},
select
:
function
()
{
files
.
show
()
files
.
unselect
()
if
(
Utils
.
check_view_file
(
view
))
{
$
(
"
#logs li[id='file-
"
+
view
.
file
.
orig_name
+
"
']
"
).
addClass
(
'
active
'
)
...
...
@@ -194,7 +199,13 @@ function Page_Distrubion(socket)
},
unselect
:
function
()
{
$
(
'
#logs li
'
).
removeClass
(
'
active
'
);
}
},
hide
:
function
()
{
$
(
'
#files
'
).
hide
()
},
show
:
function
()
{
$
(
'
#files
'
).
show
()
},
}
var
file
=
{
...
...
@@ -320,12 +331,19 @@ function Page_Distrubion(socket)
var
error
=
{
set
:
function
(
socket_error
)
{
$
(
"
#error span
"
).
html
(
socket_error
)
$
(
"
#error
"
).
fadeIn
(
100
)
error
.
view
(
)
},
clean
:
function
()
{
$
(
"
#error
"
).
hide
()
$
(
"
#error span
"
).
html
(
''
)
},
view
:
function
()
{
$
(
"
#error
"
).
fadeIn
(
100
)
title
.
set
(
"
Something is wrong ...
"
)
file
.
clean
()
files
.
hide
()
unselect
()
},
}
var
select
=
function
()
{
...
...
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