Skip to content
This repository
Browse code

refactoring

  • Loading branch information...
commit a87551bb5f592446771fe0ca9a5b7e95ed49e68a 1 parent 8da6f99
Toru Hisai authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 synker/public/tasks/tasks.js
6 synker/public/tasks/tasks.js
@@ -112,6 +112,10 @@ TaskItem.prototype.get_property = function (prop) {
112 112 return this.prop[prop]
113 113 }
114 114
  115 +TaskItem.prototype.set_state = function (value) {
  116 + this.prop.state = value
  117 +}
  118 +
115 119 Tasks.prototype.match_object = function () {
116 120 var obj_box = []
117 121 var self = this
@@ -156,7 +160,7 @@ Tasks.prototype.match_snapshot_xml = function (data) {
156 160
157 161 Tasks.prototype.update_task_state = function (task, state) {
158 162 console.debug("clicked", state)
159   - task.set_property ("state", state)
  163 + task.set_state (state)
160 164 var e = E_("updates", {},
161 165 E_("update_object", {object_id: task.id},
162 166 E_("property", {key: "state"}, state),

0 comments on commit a87551b

Please sign in to comment.
Something went wrong with that request. Please try again.