@ -48,6 +48,7 @@ define([
$hist.addClass('cp-smallpatch');
$hist.addClass('cp-history-oo');
var $bottom = $toolbar.find('.cp-toolbar-bottom');
var Messages = common.Messages;
var getVersion = function () {
var major = sortedCp.length - cpIndex;
@ -137,8 +138,6 @@ define([
config.setHistory(true);
$hist.html('').css('display', 'flex');
$bottom.hide();
@ -392,7 +392,7 @@ define([
};
*/
var makeSnapshot = function (title) {
var makeSnapshot = function (title, $input) {
var idx = getIndex(c);
if (!config.getLastMetadata || !config.setLastMetadata) { return; }
try {
@ -622,7 +622,7 @@ define([
onClick: function () {
var val = $input.val();
if (!val) { return true; }
makeSnapshot(val);
makeSnapshot(val, $input);
},
keys: [],
}];