forked from cainlevy/recordselect
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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
Labels
No labels