[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()
|
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({
|
addViews.push({
|
||||||
caption: me.textFormula,
|
caption: me.textFormula,
|
||||||
id: 'add-formula',
|
id: 'add-formula',
|
||||||
layout: SSE.getController('AddFunction').getView('AddFunction').rootLayout()
|
layout: options ? view.rootLayout() : view.layoutPanel()
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if ( !options )
|
if ( !options )
|
||||||
addViews.push({
|
addViews.push({
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<% if (view == 'root') { %>
|
<% if (view == 'root') { %>
|
||||||
|
|
||||||
<div id="add-function-root">
|
<div id="add-function-root">
|
||||||
|
<div class="page" data-page="add-function">
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div class="list-block">
|
<div class="list-block">
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -33,7 +34,8 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<% }; %>
|
<% }; %>
|
||||||
<ul>
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -137,6 +137,14 @@ define([
|
||||||
return '';
|
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 () {
|
initControls: function () {
|
||||||
//
|
//
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue