Currently, it is near impossible to implement a timed delay for the Views refresh action. The theme object should have a "timeout" property that can be set in the theme hook method to implement a delayed refresh. For example, the following code would pause the refresh for 5 seconds.

viewsFlagRefresh.theme.prototype.themeHook = function() {
  this.timeout = 5000;
}
CommentFileSizeAuthor
#2 views_flag_refresh-904902-1.patch1.18 KBcpliakas

Comments

cpliakas’s picture

Issue tags: +6.x-1.0-beta3

Flagging for the beta3 release.

cpliakas’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new1.18 KB

The attached patch adds the functionality.

cpliakas’s picture

Status: Reviewed & tested by the community » Fixed

Added in commit #417708.

Status: Fixed » Closed (fixed)
Issue tags: -6.x-1.0-beta3

Automatically closed -- issue fixed for 2 weeks with no activity.