[SSE Mobile] debug Functions page

This commit is contained in:
Maxim Kadushkin 2016-12-21 17:27:35 +03:00
parent 528ff8eef5
commit a426f2150b
4 changed files with 16 additions and 9 deletions

View file

@ -6,10 +6,8 @@
} }
.page-content { .page-content {
.list-block, .content-block { .list-block:first-child {
&:first-child { margin-top: -1px;
margin-top: -1px;
}
} }
} }
} }
@ -69,6 +67,15 @@
border-radius: 13px; border-radius: 13px;
} }
} }
.content-block:first-child {
margin-top: 0;
.content-block-inner {
&:before {
height: 0;
}
}
}
} }
.categories { .categories {

View file

@ -117,9 +117,9 @@ require([
'Editor', 'Editor',
'Toolbar', 'Toolbar',
'Search', 'Search',
'CellEditor',
'Main', 'Main',
'DocumentHolder' 'DocumentHolder'
,'CellEditor'
,'Statusbar' ,'Statusbar'
,'Settings' ,'Settings'
,'EditContainer' ,'EditContainer'

View file

@ -83,7 +83,7 @@
</div> </div>
<div class="page"> <div class="page">
<div class="page-content"> <div class="page-content">
<div class="list-block"> <div class="content-block">
<div class="content-block-inner"> <div class="content-block-inner">
<h3><%= args %></h3> <h3><%= args %></h3>
<p><%= descr %></p> <p><%= descr %></p>

View file

@ -86,7 +86,7 @@ define([
var me = this; var me = this;
$('.settings').single('click', '.function .info', this.onFunctionInfoClick.bind(this)) $('.settings').single('click', '.function .info', this.onFunctionInfoClick.bind(this))
.single('click', '.function > a', this.onFunctionClick.bind(this)); .on('click', '.function > a', this.onFunctionClick.bind(this));
$('.groups a.group').single('click', this.onGroupClick.bind(this)); $('.groups a.group').single('click', this.onGroupClick.bind(this));
me.initControls(); me.initControls();
@ -142,8 +142,8 @@ define([
}, },
onFunctionClick: function (e) { onFunctionClick: function (e) {
if ( !/\.info/.test(e.target) ) // if ( !/info/.test(e.target.className) )
this.fireEvent('function:insert', [$(e.target).data('func')]); this.fireEvent('function:insert', [$(e.currentTarget).data('func')]);
}, },
onFunctionInfoClick: function(e) { onFunctionInfoClick: function(e) {