+ if (this.repo != null) {
+ var bn = _this.name.el.get_text();
+ if (ticket_id != "" ) {
+ this.repo.setActiveTicket( RooTicket.singleton().getById(ticket_id), bn);
+ } else {
+ this.repo.setActiveTicket( RooTicket.singleton().getById("-1"), bn);
+ }
+ }