[SSE mobile] debug 'add function' option
This commit is contained in:
parent
bf10598c25
commit
a1b0a2a92c
|
@ -130,12 +130,14 @@ define([
|
|||
layout: SSE.getController('AddChart').getView('AddChart').rootLayout()
|
||||
});
|
||||
|
||||
if ( !options || options.panel == 'function' )
|
||||
if ( !options || options.panel == 'function' ) {
|
||||
view = SSE.getController('AddFunction').getView('AddFunction');
|
||||
addViews.push({
|
||||
caption: me.textFormula,
|
||||
id: 'add-formula',
|
||||
layout: SSE.getController('AddFunction').getView('AddFunction').rootLayout()
|
||||
layout: options ? view.rootLayout() : view.layoutPanel()
|
||||
});
|
||||
}
|
||||
|
||||
if ( !options )
|
||||
addViews.push({
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<% if (view == 'root') { %>
|
||||
|
||||
<div id="add-function-root">
|
||||
<div class="page" data-page="add-function">
|
||||
<div class="page-content">
|
||||
<div class="list-block">
|
||||
<ul>
|
||||
|
@ -33,7 +34,8 @@
|
|||
</a>
|
||||
</li>
|
||||
<% }; %>
|
||||
<ul>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -137,6 +137,14 @@ define([
|
|||
return '';
|
||||
},
|
||||
|
||||
layoutPage: function () {
|
||||
return this.layout ? this.layout.find('#add-function-root').html() : '';
|
||||
},
|
||||
|
||||
layoutPanel: function() {
|
||||
return this.layout ? this.layout.find('#add-function-root .page-content').html() : '';
|
||||
},
|
||||
|
||||
initControls: function () {
|
||||
//
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue