Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Video AG Infrastruktur
website
Commits
5dd5e044
Commit
5dd5e044
authored
8 years ago
by
Andreas Valder
Browse files
Options
Downloads
Patches
Plain Diff
closes #237
parent
34cbf9bb
No related branches found
No related tags found
Loading
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
static/moderator.js
+9
-2
9 additions, 2 deletions
static/moderator.js
templates/base.html
+16
-0
16 additions, 0 deletions
templates/base.html
with
25 additions
and
2 deletions
static/moderator.js
+
9
−
2
View file @
5dd5e044
...
...
@@ -2,7 +2,10 @@ var moderator = {
api
:
{
csrf_token
:
''
,
init
:
function
()
{
$
(
"
#modal_apierror
"
).
on
(
'
hidden.bs.modal
'
,
function
()
{
$
(
"
.modal-body
"
,
$
(
"
#modal_apierror
"
))[
0
].
innerHTML
=
''
;
$
(
"
.modal-body
"
,
$
(
"
#modal_apierror
"
))[
0
].
innerHTML
=
''
;
});
},
set
:
function
(
path
,
value
,
reload
)
{
var
req
=
{};
...
...
@@ -43,6 +46,8 @@ var moderator = {
},
handleapierror
:
function
(
jqXHR
,
textStatus
,
errorThrow
)
{
console
.
log
(
"
Fehler:
"
+
errorThrow
)
$
(
"
.modal-body
"
,
$
(
"
#modal_apierror
"
))[
0
].
innerHTML
+=
"
<p>
"
+
errorThrow
+
"
:
"
+
textStatus
+
"
</p>
"
;
$
(
"
#modal_apierror
"
).
modal
()
},
gethttp
:
function
(
url
){
$
.
ajax
({
...
...
@@ -247,7 +252,9 @@ var moderator = {
}
};
$
(
document
).
ready
(
function
()
{
moderator
.
init
();
}
);
$
(
document
).
ready
(
function
()
{
moderator
.
init
();
}
);
$
(
document
).
ready
(
function
()
{
var
l
=
$
(
"
.plot-view
"
);
...
...
This diff is collapsed.
Click to expand it.
templates/base.html
+
16
−
0
View file @
5dd5e044
...
...
@@ -154,6 +154,22 @@
</div>
</footer>
{% endblock %}
{% block modals %}
<div
class=
"modal fade"
id=
"modal_apierror"
role=
"dialog"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<h4
style=
"color:red;"
><span
class=
"glyphicon glyphicon-exclamation-sign"
></span>
Error
</h4>
</div>
<div
class=
"modal-body"
>
</div>
<div
class=
"modal-footer"
>
</div>
</div>
</div>
</div>
{% endblock %}
</body>
{% if ismod() %}
<script>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment