Manage editable top in new_model_position

This commit is contained in:
C?dric Krier 2015-10-09 11:43:25 +02:00
parent e115b17ca5
commit 15e9859670

View file

@ -917,7 +917,10 @@
},
new_model_position: function() {
var position = -1;
// TODO editable
if (this.current_view && (this.current_view.view_type == 'tree') &&
(this.current_view.attributes.editable == 'top')) {
position = 0;
}
return position;
},
set_on_write: function(name) {