aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2013-10-17 21:12:48 +0200
committerChristian Ruppert <idl0r@gentoo.org>2013-10-17 21:12:48 +0200
commitbf0dc7286033e6cbed8008acb1d7d2a2b37b587f (patch)
tree62db039d64d003817f69ea91aa827b3160fd77d1 /extensions/InlineHistory/web
parentMove m68k, s390, sh to unstable (diff)
downloadbugzilla-bf0dc7286033e6cbed8008acb1d7d2a2b37b587f.tar.gz
bugzilla-bf0dc7286033e6cbed8008acb1d7d2a2b37b587f.tar.bz2
bugzilla-bf0dc7286033e6cbed8008acb1d7d2a2b37b587f.zip
Update SecureMail and InlineHistory
Diffstat (limited to 'extensions/InlineHistory/web')
-rw-r--r--extensions/InlineHistory/web/inline-history.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/InlineHistory/web/inline-history.js b/extensions/InlineHistory/web/inline-history.js
index 0d38edf7f..95a664a42 100644
--- a/extensions/InlineHistory/web/inline-history.js
+++ b/extensions/InlineHistory/web/inline-history.js
@@ -126,15 +126,15 @@ var inline_history = {
}
}
- var itemHtml = '<div class="ih_history_item ' + containerClass + '" '
- + 'id="h' + i + '">'
- + item[3] + item[2]
- + '</div>';
+ var itemContainer = document.createElement('div');
+ itemContainer.className = 'ih_history_item ' + containerClass;
+ itemContainer.id = 'h' + i;
+ itemContainer.innerHTML = item[3] + '<div class="ih_history_change">' + item[2] + '</div>';
if (ih_activity_sort_order == 'oldest_to_newest') {
- currentDiv.innerHTML = currentDiv.innerHTML + itemHtml;
+ currentDiv.appendChild(itemContainer);
} else {
- currentDiv.innerHTML = itemHtml + currentDiv.innerHTML;
+ currentDiv.insertBefore(itemContainer, currentDiv.firstChild);
}
currentDiv.setAttribute("class", "bz_comment ih_history");
if (item[6])