Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
a1b0a2a9
Commit
a1b0a2a9
authored
Jan 11, 2017
by
Maxim Kadushkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE mobile] debug 'add function' option
parent
bf10598c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
32 deletions
+44
-32
apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js
...readsheeteditor/mobile/app/controller/add/AddContainer.js
+4
-2
apps/spreadsheeteditor/mobile/app/template/AddFunction.template
...preadsheeteditor/mobile/app/template/AddFunction.template
+32
-30
apps/spreadsheeteditor/mobile/app/view/add/AddFunction.js
apps/spreadsheeteditor/mobile/app/view/add/AddFunction.js
+8
-0
No files found.
apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js
View file @
a1b0a2a9
...
...
@@ -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
({
...
...
apps/spreadsheeteditor/mobile/app/template/AddFunction.template
View file @
a1b0a2a9
...
...
@@ -2,38 +2,40 @@
<% if (view == 'root') { %>
<div id="add-function-root">
<div class="page-content">
<div class="list-block">
<ul>
<% _.each(quick, function(f) { %>
<li class="function">
<a data-func="<%= f.type %>" class="item-link no-indicator quick">
<div class="item-content">
<div class="item-inner">
<div class="item-title"><%= f.caption %></div>
<div class="item-after"><span class="info"></span></div>
<div class="page" data-page="add-function">
<div class="page-content">
<div class="list-block">
<ul>
<% _.each(quick, function(f) { %>
<li class="function">
<a data-func="<%= f.type %>" class="item-link no-indicator quick">
<div class="item-content">
<div class="item-inner">
<div class="item-title"><%= f.caption %></div>
<div class="item-after"><span class="info"></span></div>
</div>
</div>
</
div
>
</
a
>
<
/li
>
<
% }); %
>
</
ul
>
</div>
<div class="content-block-title"><%= textGroups %></div
>
<div class="list-block
">
<ul class="groups"
>
<% for (var g in groups) { %
>
<li
>
<a data-type="<%= g %>" class="item-link group
">
<div class="item-content
">
<div class="item-inner"
>
<
div class="item-title"><%= groups[g] %><
/div>
</
a
>
</
li
>
<
% }); %
>
<
/ul
>
</
div
>
<div class="content-block-title"><%= textGroups %>
</div>
<div class="list-block"
>
<ul class="groups
">
<% for (var g in groups) { %
>
<li
>
<a data-type="<%= g %>" class="item-link group"
>
<div class="item-content
">
<div class="item-inner
">
<div class="item-title"><%= groups[g] %></div
>
</div>
</div>
</
div
>
</
a
>
<
/li
>
<
% }; %
>
<
ul
>
</
a
>
</
li
>
<
% }; %
>
<
/ul
>
<
/div
>
</div>
</div>
</div>
...
...
apps/spreadsheeteditor/mobile/app/view/add/AddFunction.js
View file @
a1b0a2a9
...
...
@@ -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
()
{
//
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment