Fix debug app restore history
This commit is contained in:
@@ -441,8 +441,8 @@ define([
|
|||||||
|
|
||||||
var toRestore;
|
var toRestore;
|
||||||
|
|
||||||
config.onLocal = function () {
|
config.onLocal = function (a, restore) {
|
||||||
if (!toRestore) { return; }
|
if (!toRestore || !restore) { return; }
|
||||||
cpNfInner.chainpad.contentUpdate(toRestore);
|
cpNfInner.chainpad.contentUpdate(toRestore);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -464,7 +464,9 @@ define([
|
|||||||
|
|
||||||
/* add a history button */
|
/* add a history button */
|
||||||
var histConfig = {
|
var histConfig = {
|
||||||
onLocal: config.onLocal,
|
onLocal: function () {
|
||||||
|
config.onLocal(null, true);
|
||||||
|
},
|
||||||
onRemote: config.onRemote,
|
onRemote: config.onRemote,
|
||||||
setHistory: setHistory,
|
setHistory: setHistory,
|
||||||
applyVal: function (val) {
|
applyVal: function (val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user