core/modules/comment/js/node-new-comments-link.js | 2 +- core/modules/history/js/history.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/modules/comment/js/node-new-comments-link.js b/core/modules/comment/js/node-new-comments-link.js index f68b01f..3b74a54 100644 --- a/core/modules/comment/js/node-new-comments-link.js +++ b/core/modules/comment/js/node-new-comments-link.js @@ -67,7 +67,7 @@ function show($placeholder) { .closest('.comment-new-comments') // Find the preceding
  • , if any, and remove its 'last' class, if any. .prev().removeClass('last') - // Go back to the parent
  • and hide it. + // Go back to the parent
  • and show it. .end().show(); } diff --git a/core/modules/history/js/history.js b/core/modules/history/js/history.js index db1e025..de9c745 100644 --- a/core/modules/history/js/history.js +++ b/core/modules/history/js/history.js @@ -32,7 +32,7 @@ Drupal.history = { success: function (results) { for (var nodeID in results) { if (results.hasOwnProperty(nodeID)) { - storage.setItem('history:read:' + currentUserID + ':' + nodeID, results[nodeID]); + storage.setItem('Drupal.history.' + currentUserID + '.' + nodeID, results[nodeID]); } } callback(); @@ -50,7 +50,7 @@ Drupal.history = { * A UNIX timestamp. */ getLastRead: function (nodeID) { - return parseInt(storage.getItem('history:read:' + currentUserID + ':' + nodeID) || 0, 10); + return parseInt(storage.getItem('Drupal.history.' + currentUserID + '.' + nodeID) || 0, 10); }, /** @@ -65,7 +65,7 @@ Drupal.history = { type: 'POST', dataType: 'json', success: function (timestamp) { - storage.setItem('history:read:' + currentUserID + ':' + nodeID, timestamp); + storage.setItem('Drupal.history.' + currentUserID + '.' + nodeID, timestamp); } }); }, @@ -90,7 +90,7 @@ Drupal.history = { if (contentTimestamp < thirtyDaysAgo) { return false; } - var minLastReadTimestamp = parseInt(storage.getItem('history:read:' + currentUserID + ':' + nodeID) || 0, 10); + var minLastReadTimestamp = parseInt(storage.getItem('Drupal.history.' + currentUserID + '.' + nodeID) || 0, 10); return contentTimestamp > minLastReadTimestamp; } };