return link in group editor

This commit is contained in:
Antelle 2015-11-09 21:27:50 +03:00
parent 7f05634f68
commit 12f10289b2
3 changed files with 17 additions and 0 deletions

View File

@ -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');
}
});

View File

@ -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);

View File

@ -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">