improved throbber display in advenced search

This commit is contained in:
Bachir Soussi Chiadmi 2017-11-21 09:58:45 +01:00
parent 106129c27c
commit afc654c704
3 changed files with 19 additions and 0 deletions

View File

@ -969,6 +969,7 @@ function materio_search_api_advanced_search_form($form, &$form_state){
'#ajax' => array(
'callback' => 'materio_search_api_advanced_search_select_callback',
'wrapper' => 'advancedsearch-filters-wrapper',
// 'progress'=>array('message'=>''),
),
);
// without this line, form api will mess with default values

View File

@ -3996,6 +3996,12 @@ body.home-v2 #main {
background: transparent url("../img/ajax-loader.gif") no-repeat center center; }
#tool-bar #materio-search-api-advanced-search-form.loading div.search-btn-wrapper input {
visibility: hidden; }
#tool-bar #materio-search-api-advanced-search-form .throbbing {
display: none; }
#tool-bar #materio-search-api-advanced-search-form .ajax-progress-throbber .message {
display: none; }
#tool-bar #materio-search-api-advanced-search-form .ajax-progress-throbber .throbber {
background: transparent url("../img/ajax-loader.gif") no-repeat center center; }
#center {
border-radius: 10px;

View File

@ -1316,6 +1316,18 @@ $headerouterheight:$headerheight+$headerpaddingtop+$headerpaddingbottom;
input{ visibility: hidden; }
}
}
.throbbing {
// background-position: 100% -20px; /* tweak this according to your gif */
display: none;
}
.ajax-progress-throbber{
.message{
display: none;
}
.throbber{
background: transparent url('../img/ajax-loader.gif') no-repeat center center;
}
}
}