Skip to content

loading indicator support #6

@clyfe

Description

@clyfe

When I click the text input,
while the list of records is not yet showing,
I should see a loading indicator.

@@ -226,10 +226,16 @@ RecordSelect.Abstract = Class.extend({
       //dataType: options.ajax_data_type,
       success: function(data){
         _this.container.html(data);
         _this.show();
         $(document.body).mousedown(jQuery.proxy(_this, "onbodyclick"));
+      },
+      beforeSend: function(event) {
+        _this.obj.nextAll('img.loading-indicator').css('visibility','visible');
+      },
+      complete: function(event) {
+        _this.obj.nextAll('img.loading-indicator').css('visibility','hidden');
       }
     });
   },

   /**

The loading Indicator image should either be a RS asset or explicitly provided by the user, or if this RS fork is meant to be used with AS only, the liading-indicator image is already there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions