From afc654c70404a33c75190ffc64009aedc848802b Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 21 Nov 2017 09:58:45 +0100 Subject: [PATCH] improved throbber display in advenced search --- .../gui/materiobasemod/materio_search_api.module | 1 + sites/all/themes/gui/materiobasetheme/css/styles.css | 6 ++++++ .../all/themes/gui/materiobasetheme/scss/styles.scss | 12 ++++++++++++ 3 files changed, 19 insertions(+) diff --git a/sites/all/modules/gui/materiobasemod/materio_search_api.module b/sites/all/modules/gui/materiobasemod/materio_search_api.module index 77558320..1ff72692 100755 --- a/sites/all/modules/gui/materiobasemod/materio_search_api.module +++ b/sites/all/modules/gui/materiobasemod/materio_search_api.module @@ -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 diff --git a/sites/all/themes/gui/materiobasetheme/css/styles.css b/sites/all/themes/gui/materiobasetheme/css/styles.css index a0873da3..a8e5a76e 100644 --- a/sites/all/themes/gui/materiobasetheme/css/styles.css +++ b/sites/all/themes/gui/materiobasetheme/css/styles.css @@ -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; diff --git a/sites/all/themes/gui/materiobasetheme/scss/styles.scss b/sites/all/themes/gui/materiobasetheme/scss/styles.scss index d0665458..0431b4ba 100644 --- a/sites/all/themes/gui/materiobasetheme/scss/styles.scss +++ b/sites/all/themes/gui/materiobasetheme/scss/styles.scss @@ -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; + } + } }