mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-2282 add loader on results display
This commit is contained in:
@@ -95,5 +95,11 @@
|
|||||||
padding: 0 9px;
|
padding: 0 9px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
.result_loader {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -119,6 +119,7 @@
|
|||||||
//load the next result page
|
//load the next result page
|
||||||
jQuery(document).ready(function(){
|
jQuery(document).ready(function(){
|
||||||
jQuery('.next_res').click(function(){
|
jQuery('.next_res').click(function(){
|
||||||
|
jQuery('.results').append('<img class="result_loader" src="/assets/common/images/icons/loading.svg">');
|
||||||
jQuery('.results').load($(this).attr('href'));
|
jQuery('.results').load($(this).attr('href'));
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
@@ -126,6 +127,7 @@
|
|||||||
//load the prev result page
|
//load the prev result page
|
||||||
jQuery(document).ready(function(){
|
jQuery(document).ready(function(){
|
||||||
jQuery('.prev_res').click(function(){
|
jQuery('.prev_res').click(function(){
|
||||||
|
jQuery('.results').append('<img class="result_loader" src="/assets/common/images/icons/loading.svg">');
|
||||||
jQuery('.results').load($(this).attr('href'));
|
jQuery('.results').load($(this).attr('href'));
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user