/toggle_action |
action toggles poll between closed and open |
Sourcecode in Poll/actions.js:
1: function toggle_action() { 2: var closed = !this.closed; 3: this.closed = closed ? 1 : 0; 4: this.modifytime = new Date(); 5: res.redirect(this._parent.href()); 6: return; 7: } |