Skip to content

Commit

Permalink
state
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jul 7, 2011
1 parent 3e1ca3a commit 99cfcca
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/http/public/javascripts/job.js
Expand Up @@ -108,16 +108,16 @@ Job.prototype.render = function(isNew){
view.data.add(row);
}

// // alter state
// el.find('.state td:last-child').text(this.state).click(function(){
// var select = o('<select>%s</select>', options(states, self.state));
// o(this).replaceWith(select);
// select.change(function(){
// el.remove();
// self.updateState(select.val());
// });
// return false;
// });
// alter state
view.state(this.state);
view.state().click(function(){
var select = o('<select>%s</select>', options(states, self.state));
o(this).replaceWith(select);
select.change(function(){
self.updateState(select.val());
});
return false;
});

// alter priority
view.priority(priority(this));
Expand Down

0 comments on commit 99cfcca

Please sign in to comment.