updated core from 8.4 to 8.5 : bug with login_destination
This commit is contained in:
@@ -103,13 +103,13 @@
|
||||
data: { 'node_ids[]': nodeIDs },
|
||||
dataType: 'json',
|
||||
success(results) {
|
||||
for (const nodeID in results) {
|
||||
if (results.hasOwnProperty(nodeID) && placeholdersToUpdate.hasOwnProperty(nodeID)) {
|
||||
Object.keys(results || {}).forEach((nodeID) => {
|
||||
if (placeholdersToUpdate.hasOwnProperty(nodeID)) {
|
||||
const url = results[nodeID].first_new_comment_link;
|
||||
const text = Drupal.formatPlural(results[nodeID].new_comment_count, '1 new', '@count new');
|
||||
$(placeholdersToUpdate[nodeID]).append(`<br /><a href="${url}">${text}</a>`);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -87,13 +87,13 @@
|
||||
data: { 'node_ids[]': nodeIDs },
|
||||
dataType: 'json',
|
||||
success: function success(results) {
|
||||
for (var nodeID in results) {
|
||||
if (results.hasOwnProperty(nodeID) && placeholdersToUpdate.hasOwnProperty(nodeID)) {
|
||||
Object.keys(results || {}).forEach(function (nodeID) {
|
||||
if (placeholdersToUpdate.hasOwnProperty(nodeID)) {
|
||||
var url = results[nodeID].first_new_comment_link;
|
||||
var text = Drupal.formatPlural(results[nodeID].new_comment_count, '1 new', '@count new');
|
||||
$(placeholdersToUpdate[nodeID]).append('<br /><a href="' + url + '">' + text + '</a>');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user