Commit a1b0a2a9 authored by Maxim Kadushkin's avatar Maxim Kadushkin

[SSE mobile] debug 'add function' option

parent bf10598c
...@@ -130,12 +130,14 @@ define([ ...@@ -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 @@ ...@@ -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 @@ ...@@ -33,7 +34,8 @@
</a> </a>
</li> </li>
<% }; %> <% }; %>
<ul> </ul>
</div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -137,6 +137,14 @@ define([ ...@@ -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 () {
// //
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment