mirror of
https://github.com/keeweb/keeweb.git
synced 2024-06-26 07:39:04 +02:00
return link in group editor
This commit is contained in:
parent
7f05634f68
commit
12f10289b2
|
@ -11,6 +11,7 @@ var GrpView = Backbone.View.extend({
|
||||||
events: {
|
events: {
|
||||||
'click .grp__icon': 'showIconsSelect',
|
'click .grp__icon': 'showIconsSelect',
|
||||||
'click .grp__buttons-trash': 'moveToTrash',
|
'click .grp__buttons-trash': 'moveToTrash',
|
||||||
|
'click .grp__back-button': 'returnToApp',
|
||||||
'blur #grp__field-title': 'titleBlur'
|
'blur #grp__field-title': 'titleBlur'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -93,6 +94,10 @@ var GrpView = Backbone.View.extend({
|
||||||
moveToTrash: function() {
|
moveToTrash: function() {
|
||||||
this.model.moveToTrash();
|
this.model.moveToTrash();
|
||||||
Backbone.trigger('select-all');
|
Backbone.trigger('select-all');
|
||||||
|
},
|
||||||
|
|
||||||
|
returnToApp: function() {
|
||||||
|
Backbone.trigger('edit-group');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,15 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
user-select: none;
|
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 {
|
>.scroller {
|
||||||
@include flex(1);
|
@include flex(1);
|
||||||
@include display(flex);
|
@include display(flex);
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<div class="grp">
|
<div class="grp">
|
||||||
|
<div class="grp__back-button">
|
||||||
|
return to app <i class="fa fa-external-link-square"></i>
|
||||||
|
</div>
|
||||||
<div class="scroller">
|
<div class="scroller">
|
||||||
<h1>Group</h1>
|
<h1>Group</h1>
|
||||||
<div class="grp__field">
|
<div class="grp__field">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user