Enable/disable inline adding/editing

Hi Max,

I've made just a simple change to be able to specifically enable or disable inline adding and editing.

Regards,
Jaap Haagmans