summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarim Ratib2013-04-21 08:44:58 (GMT)
committer Karim Ratib2013-04-21 08:44:58 (GMT)
commit9931ab5aa056781f5ae58e9142d21599b4083970 (patch)
treea529fe2f4f3d945a3f93c429d7bf9b9b789a0701
parent340493e2e5aed2bd2e8c4c5f0fd37e832e6f95fe (diff)
Support highlighted new items #1975764
-rw-r--r--views_autorefresh.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/views_autorefresh.js b/views_autorefresh.js
index bf92870..017b2a2 100644
--- a/views_autorefresh.js
+++ b/views_autorefresh.js
@@ -81,6 +81,9 @@ Drupal.views_autorefresh.timer = function(view_name, anchor, target) {
Drupal.settings.views_autorefresh[view_name].timer = setTimeout(function() {
clearTimeout(Drupal.settings.views_autorefresh[view_name].timer);
+ // Turn off "new" items class.
+ $('.views-autorefresh-new', target).removeClass('views-autorefresh-new');
+
// Handle ping path.
var ping_base_path;
if (Drupal.settings.views_autorefresh[view_name].ping) {