Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,695
Issues
1,695
List
Boards
Labels
Service Desk
Milestones
Merge Requests
88
Merge Requests
88
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
182ae559
Commit
182ae559
authored
Jun 27, 2016
by
HERBERT Ryan
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Query indicator
Added indicator when ajax query is in progress
parent
b370c688
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
browser/index.html
browser/index.html
+1
-0
browser/js/database.js
browser/js/database.js
+13
-0
browser/js/main.js
browser/js/main.js
+8
-0
No files found.
browser/index.html
View file @
182ae559
...
...
@@ -256,6 +256,7 @@
<a
class=
"buttonSelector"
onclick=
"changeStyle('solarizeD')"
>
dark
</a>
</div></div>
</div>
<div
style=
"float: right; margin: 5px;"
id=
'live-ajax'
></div>
<div
id=
"fps"
style=
"float: right; display: none"
>
</div>
<div
id=
"header_messages"
class=
"message_container header"
></div>
...
...
browser/js/database.js
View file @
182ae559
...
...
@@ -981,6 +981,19 @@ Database.prototype = {
return
args
},
ajax_indicator_start
:
function
()
{
var
tgt
=
$
(
'
#live-ajax
'
);
tgt
.
empty
();
$
(
'
<img/>
'
,
{
src
:
'
images/ajax-loader.gif
'
}).
appendTo
(
$
(
'
<div/>
'
,
{
class
:
'
active-container
'
}).
appendTo
(
tgt
));
$
(
'
body
'
).
css
(
'
cursor
'
,
'
wait
'
);
},
ajax_indicator_stop
:
function
()
{
var
tgt
=
$
(
'
#live-ajax
'
);
tgt
.
empty
();
$
(
'
body
'
).
css
(
'
cursor
'
,
'
default
'
);
},
// Log functions, to server
// 'quiet' is set to true to avoid infinite loops with timeouts
log
:
function
(
lvl
,
msg
)
{
this
.
request
(
'
default/logger
'
,
{
'
lvl
'
:
lvl
,
'
msg
'
:
msg
},
true
)
},
...
...
browser/js/main.js
View file @
182ae559
...
...
@@ -97,6 +97,14 @@ try {
console
.
log
(
"
=== main.js finished ===
"
);
$
(
document
).
ajaxStart
(
function
()
{
//show ajax indicator
db
.
ajax_indicator_start
(
'
loading data.. please wait..
'
);
}).
ajaxStop
(
function
()
{
//hide ajax indicator
db
.
ajax_indicator_stop
();
});
(
function
worker
(){
db
.
loadNotifications
();
setTimeout
(
worker
,
300000
);
...
...
Vidjil Team
@vidjilteam
Mentioned in issue
#1476 (closed)
·
Nov 29, 2016
Mentioned in issue
#1476 (closed)
Mentioned in issue #1476
Toggle commit list
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