X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/e6e83eed52400d6e8a6ee6339cbe212c8cac1f90..cb800d0ee02280d6e2663cf0524fb74681c8173e:/modules/documentHistory/documentHistory.js diff --git a/modules/documentHistory/documentHistory.js b/modules/documentHistory/documentHistory.js index 05cddbc..c90c879 100644 --- a/modules/documentHistory/documentHistory.js +++ b/modules/documentHistory/documentHistory.js @@ -19,7 +19,7 @@ return function(sandbox) { historyItems.add(item); var view = new itemView(item); itemViews.push(view); - domNodes.itemList.append(view.dom); + domNodes.itemList.prepend(view.dom); } var toggleItemViews = function(toggle) { @@ -81,7 +81,7 @@ return function(sandbox) { return { start: function() { sandbox.publish('ready'); }, - setHistory: function(history) { + addHistory: function(history) { history.forEach(function(historyItem) { addHistoryItem(historyItem); });