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
bf10598c
Commit
bf10598c
authored
Jan 11, 2017
by
Maxim Kadushkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE mobile] separate 'add hyperlink' option
parent
64c1b76f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
30 deletions
+42
-30
apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js
...spreadsheeteditor/mobile/app/controller/DocumentHolder.js
+3
-2
apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js
...readsheeteditor/mobile/app/controller/add/AddContainer.js
+39
-28
No files found.
apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js
View file @
bf10598c
...
...
@@ -131,8 +131,9 @@ define([
break
;
case
'
addlink
'
:
me
.
view
.
hideMenu
();
SSE
.
getController
(
'
AddContainer
'
).
showModal
();
SSE
.
getController
(
'
AddOther
'
).
getView
(
'
AddOther
'
).
showInsertLink
();
SSE
.
getController
(
'
AddContainer
'
).
showModal
({
panel
:
'
hyperlink
'
});
break
;
case
'
openlink
'
:
var
linkinfo
=
info
.
asc_getHyperlink
();
...
...
apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js
View file @
bf10598c
...
...
@@ -104,7 +104,7 @@ define([
}
options
=
opts
;
parentButton
=
!
opts
?
'
#toolbar-add
'
:
opts
.
button
;
parentButton
=
!
opts
||
!
opts
.
button
?
'
#toolbar-add
'
:
opts
.
button
;
me
.
_showByStack
(
Common
.
SharedSettings
.
get
(
'
phone
'
));
this
.
api
.
asc_closeCellEditor
();
...
...
@@ -151,6 +151,15 @@ define([
layout
:
SSE
.
getController
(
'
AddOther
'
).
getView
(
'
AddOther
'
).
rootLayout
()
});
if
(
options
&&
options
.
panel
==
'
hyperlink
'
)
{
var
view
=
SSE
.
getController
(
'
AddLink
'
).
getView
();
addViews
.
push
({
caption
:
view
.
getTitle
(),
id
:
'
add-link
'
,
layout
:
view
.
rootLayout
()
});
}
return
addViews
;
},
...
...
@@ -174,11 +183,15 @@ define([
);
if
(
layoutAdds
.
length
<
2
)
{
if
(
layoutAdds
.
length
==
1
)
{
$layoutNavbar
.
find
(
'
.center
'
)
.
removeClass
(
'
categories
'
)
.
html
(
layoutAdds
[
0
].
caption
);
$layoutPages
=
$
(
'
<div class="pages">
'
+
layoutAdds
[
0
].
layout
+
'
</div>
'
);
}
else
{
if
(
isAndroid
)
{
$layoutNavbar
...
...
@@ -208,36 +221,34 @@ define([
);
});
}
}
// Content
var
$layoutPages
=
$
(
var
_arrangePages
=
_
.
template
(
'
<% _.each(pages, function(view, index) { %>
'
+
'
<div id="<%= view.id %>" class="tab view<% if (index < 1) print(" active"); %>">
'
+
'
<div class="pages">
'
+
'
<div class="page" data-page="index
">
'
+
'
<div class="page no-navbar
">
'
+
'
<div class="page-content">
'
+
'
<div class="tabs-animated-wrap">
'
+
'
<div class="tabs"></div>
'
+
'
<%= view.layout %>
'
+
'
</div>
'
+
'
</div>
'
+
'
</div>
'
+
'
</div>
'
);
'
</div>
'
+
'
<% }); %>
'
);
_
.
each
(
layoutAdds
,
function
(
addView
,
index
)
{
$layoutPages
.
find
(
'
.tabs
'
).
append
(
'
<div id="
'
+
addView
.
id
+
'
" class="tab view
'
+
(
index
<
1
?
'
active
'
:
''
)
+
'
">
'
+
'
<div class="pages">
'
+
'
<div class="page no-navbar">
'
+
var
$layoutPages
=
$
(
'
<div class="pages">
'
+
'
<div class="page" data-page="index">
'
+
'
<div class="page-content">
'
+
addView
.
layout
+
'
<div class="tabs-animated-wrap">
'
+
'
<div class="tabs">
'
+
_arrangePages
({
pages
:
layoutAdds
})
+
'
</div>
'
+
'
</div>
'
+
'
</div>
'
+
'
</div>
'
);
}
);
'
</div>
'
+
'
</div>
'
);
}
if
(
isPhone
)
{
me
.
picker
=
$$
(
uiApp
.
popup
(
...
...
@@ -288,7 +299,7 @@ define([
domCache
:
true
});
Common
.
NotificationCenter
.
trigger
(
'
addcontainer:show
'
);
Common
.
NotificationCenter
.
trigger
(
'
addcontainer:show
'
,
options
);
},
textChart
:
'
Chart
'
,
...
...
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