Review: Needs Information

> return this.views[view_type] && this.views[view_type].view_id || false;

Why not use a standard C-style ternary for that?

    return this.views[view_type] ? this.views[view_type].view_id : false;

completely standard and more readable no?

> title: _t("Create: ") + ' ' + title,

I think it'd be better (and simpler for translators) to use a translatable 
pattern for this one e.g.

    _.str.sprintf(_t("Create: %s"), title)

also not sure why there is a space *in* the translatable string and one more 
outside of it. Same for "Edit" below, except it does not have the extra space

Finally, the chunks of code in slow_create and open_event seem to be exactly 
the same, why not extract in a method returning an object with 2 keys?
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/7.0-fix-calendar-formpopup-view/+merge/146401
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/7.0-fix-calendar-formpopup-view.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to