1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-25 07:37:46 +02:00

fix group seq

This commit is contained in:
antelle 2016-04-23 22:59:28 +03:00
parent bf7e18b844
commit 5e4a13a765
2 changed files with 6 additions and 1 deletions

View File

@ -235,6 +235,10 @@ var GroupModel = MenuItemModel.extend({
return DefaultAutoTypeSequence;
},
getParentEffectiveAutoTypeSeq: function() {
return this.parentGroup ? this.parentGroup.getEffectiveAutoTypeSeq() : DefaultAutoTypeSequence;
},
moveToTrash: function() {
this.file.setModified();
this.file.db.remove(this.group);

View File

@ -33,7 +33,8 @@ var GrpView = Backbone.View.extend({
readonly: this.model.get('top'),
canAutoType: !!Launcher,
autoTypeSeq: this.model.get('autoTypeSeq'),
autoTypeEnabled: this.model.getEffectiveEnableAutoType()
autoTypeEnabled: this.model.getEffectiveEnableAutoType(),
defaultAutoTypeSeq: this.model.getParentEffectiveAutoTypeSeq()
}, { plain: true });
if (!this.model.get('title')) {
this.$el.find('#grp__field-title').focus();