mirror of https://github.com/keeweb/keeweb.git
return link in group editor
This commit is contained in:
parent
7f05634f68
commit
12f10289b2
|
@ -11,6 +11,7 @@ var GrpView = Backbone.View.extend({
|
|||
events: {
|
||||
'click .grp__icon': 'showIconsSelect',
|
||||
'click .grp__buttons-trash': 'moveToTrash',
|
||||
'click .grp__back-button': 'returnToApp',
|
||||
'blur #grp__field-title': 'titleBlur'
|
||||
},
|
||||
|
||||
|
@ -93,6 +94,10 @@ var GrpView = Backbone.View.extend({
|
|||
moveToTrash: function() {
|
||||
this.model.moveToTrash();
|
||||
Backbone.trigger('select-all');
|
||||
},
|
||||
|
||||
returnToApp: function() {
|
||||
Backbone.trigger('edit-group');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -8,6 +8,15 @@
|
|||
width: 100%;
|
||||
user-select: none;
|
||||
|
||||
&__back-button {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: $base-padding-h;
|
||||
padding: $base-padding-v * 2 0 1px 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
>.scroller {
|
||||
@include flex(1);
|
||||
@include display(flex);
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
<div class="grp">
|
||||
<div class="grp__back-button">
|
||||
return to app <i class="fa fa-external-link-square"></i>
|
||||
</div>
|
||||
<div class="scroller">
|
||||
<h1>Group</h1>
|
||||
<div class="grp__field">
|
||||
|
|
Loading…
Reference in New Issue