Use finish by default when adding new type
This commit is contained in:
@@ -242,7 +242,7 @@ Profile.Type = new Class({
|
|||||||
),
|
),
|
||||||
new Element('span.finish').adopt(
|
new Element('span.finish').adopt(
|
||||||
self.finish = new Element('input.inlay.finish[type=checkbox]', {
|
self.finish = new Element('input.inlay.finish[type=checkbox]', {
|
||||||
'checked': data.finish,
|
'checked': data.finish !== undefined ? data.finish : 1,
|
||||||
'events': {
|
'events': {
|
||||||
'change': function(e){
|
'change': function(e){
|
||||||
if(self.el == self.el.getParent().getElement(':first-child')){
|
if(self.el == self.el.getParent().getElement(':first-child')){
|
||||||
|
|||||||
Reference in New Issue
Block a user