浏览代码

修复轨迹模式下回评问题

ting.yin 6 年之前
父节点
当前提交
f229619ad8
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      stmms-web/src/main/webapp/static/mark-track/js/modules/mark-history.js

+ 3 - 2
stmms-web/src/main/webapp/static/mark-track/js/modules/mark-history.js

@@ -85,10 +85,11 @@ MarkHistory.prototype.init = function() {
 	this.container.paginator = getDom(this.paginator_dom, this.markControl).appendTo(this.container);
 	this.container.paginator = getDom(this.paginator_dom, this.markControl).appendTo(this.container);
 	this.container.list = getDom(this.history_list_dom, this.markControl).appendTo(this.container).find('#history-list');
 	this.container.list = getDom(this.history_list_dom, this.markControl).appendTo(this.container).find('#history-list');
 
 
+	var self = this;
 	this.container.header.find('#close-history-button').click(this, function(event) {
 	this.container.header.find('#close-history-button').click(this, function(event) {
 		event.data.toggle(false);
 		event.data.toggle(false);
-		this.markControl.context.task = undefined;
-        this.markControl.getTask();
+		self.markControl.context.task = undefined;
+		self.markControl.getTask();
 	})
 	})
 	this.container.paginator.find('#last-page-button').click(this, function(event) {
 	this.container.paginator.find('#last-page-button').click(this, function(event) {
 		var markHistory = event.data;
 		var markHistory = event.data;