app/assets/javascripts/activeadmin/trumbowyg/plugins/history/trumbowyg.history.js in activeadmin_trumbowyg-0.1.8 vs app/assets/javascripts/activeadmin/trumbowyg/plugins/history/trumbowyg.history.js in activeadmin_trumbowyg-0.2.0

- old
+ new

@@ -8,10 +8,11 @@ (function ($) { 'use strict'; $.extend(true, $.trumbowyg, { langs: { + // jshint camelcase:false de: { history: { redo: 'Wiederholen', undo: 'Rückgängig' } @@ -37,11 +38,24 @@ zh_tw: { history: { redo: '重做', undo: '復原' } - } + }, + pt_br: { + history: { + redo: 'Refazer', + undo: 'Desfazer' + } + }, + ko: { + history: { + redo: '다시 실행', + undo: '되돌리기' + } + }, + // jshint camelcase:true }, plugins: { history: { init: function (t) { t.o.plugins.history = $.extend(true, { @@ -127,11 +141,11 @@ // remove newer entries in history when something new was added // because timeline was changes with interaction t.o.plugins.history._stack = stack.slice( 0, t.o.plugins.history._index ); - // now add new state to modifed history + // now add new state to modified history t.o.plugins.history._stack.push(newState); } else { // modify last stack entry t.o.plugins.history._stack[index] = newState; } @@ -197,6 +211,6 @@ t.addBtnDef('historyUndo', btnBuildDefUndo); } } } }); -})(jQuery); \ No newline at end of file +})(jQuery);