Browse Source

improved throbber display in advenced search

Bachir Soussi Chiadmi 6 years ago
parent
commit
afc654c704

+ 1 - 0
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

+ 6 - 0
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;

+ 12 - 0
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;
+      }
+    }
 
   }