Use finish by default when adding new type

This commit is contained in:
Ruud
2012-09-30 17:15:47 +02:00
parent 9184a97fcd
commit d38bd03422

View File

@@ -242,7 +242,7 @@ Profile.Type = new Class({
),
new Element('span.finish').adopt(
self.finish = new Element('input.inlay.finish[type=checkbox]', {
'checked': data.finish,
'checked': data.finish !== undefined ? data.finish : 1,
'events': {
'change': function(e){
if(self.el == self.el.getParent().getElement(':first-child')){