|
@@ -775,11 +775,6 @@
|
|
|
|
|
|
|
|
self.history = ko.observableArray([]);
|
|
self.history = ko.observableArray([]);
|
|
|
self.showHistory = ko.observable(typeof notebook.showHistory != "undefined" && notebook.showHistory != null ? notebook.showHistory : false);
|
|
self.showHistory = ko.observable(typeof notebook.showHistory != "undefined" && notebook.showHistory != null ? notebook.showHistory : false);
|
|
|
- self.showHistory.subscribe(function (val) {
|
|
|
|
|
- if (val) {
|
|
|
|
|
- self.fetchHistory();
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
|
|
|
self.getSession = function (session_type) {
|
|
self.getSession = function (session_type) {
|
|
|
var _s = null;
|
|
var _s = null;
|
|
@@ -1065,6 +1060,16 @@
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ self.showHistory.subscribe(function (val) {
|
|
|
|
|
+ if (val) {
|
|
|
|
|
+ self.fetchHistory();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ if (self.showHistory()) {
|
|
|
|
|
+ self.fetchHistory();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
self.clearHistory = function (type) {
|
|
self.clearHistory = function (type) {
|
|
|
$.post("/notebook/api/clear_history", {
|
|
$.post("/notebook/api/clear_history", {
|
|
|
notebook: ko.mapping.toJSON(self.getContext()),
|
|
notebook: ko.mapping.toJSON(self.getContext()),
|