mirror of
https://github.com/friendica/friendica
synced 2025-04-22 03:10:10 +00:00
provide visual indicator when pausing ajax updates
This commit is contained in:
parent
e583ba0bff
commit
177a6d7f79
5 changed files with 16 additions and 3 deletions
|
@ -46,10 +46,17 @@
|
|||
$(document).keypress(function(event) {
|
||||
if(event.keyCode == '19') {
|
||||
event.preventDefault();
|
||||
if(stopped == false)
|
||||
if(stopped == false) {
|
||||
stopped = true;
|
||||
$('#pause img').attr('src','images/pause.gif');
|
||||
$('#pause img').css({'border': '1px solid black'});
|
||||
|
||||
}
|
||||
else {
|
||||
stopped = false;
|
||||
$('#pause img').attr('src','');
|
||||
$('#pause img').css({'border': 'none'});
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue