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
1b63975a
Commit
1b63975a
authored
Nov 22, 2016
by
Alexander Yuzhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PE mobile] Add EditContainer and AddContainer.
parent
64b17d73
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
667 additions
and
13 deletions
+667
-13
apps/presentationeditor/mobile/app-dev.js
apps/presentationeditor/mobile/app-dev.js
+6
-6
apps/presentationeditor/mobile/app/controller/add/AddContainer.js
...sentationeditor/mobile/app/controller/add/AddContainer.js
+275
-0
apps/presentationeditor/mobile/app/controller/edit/EditContainer.js
...ntationeditor/mobile/app/controller/edit/EditContainer.js
+371
-0
apps/presentationeditor/mobile/app/view/Toolbar.js
apps/presentationeditor/mobile/app/view/Toolbar.js
+15
-7
No files found.
apps/presentationeditor/mobile/app-dev.js
View file @
1b63975a
...
...
@@ -138,8 +138,8 @@ require([
'
Search
'
,
'
Main
'
,
// 'DocumentHolder',
'
Settings
'
//
'EditContainer',
'
Settings
'
,
'
EditContainer
'
,
// 'EditText',
// 'EditParagraph',
// 'EditTable',
...
...
@@ -147,7 +147,7 @@ require([
// 'EditShape',
// 'EditChart',
// 'EditHyperlink',
// 'AddContainer',
'
AddContainer
'
// 'AddTable',
// 'AddShape',
// 'AddImage',
...
...
@@ -203,8 +203,8 @@ require([
'
presentationeditor/mobile/app/controller/Search
'
,
'
presentationeditor/mobile/app/controller/Main
'
,
// 'presentationeditor/mobile/app/controller/DocumentHolder',
'
presentationeditor/mobile/app/controller/Settings
'
//
'presentationeditor/mobile/app/controller/edit/EditContainer',
'
presentationeditor/mobile/app/controller/Settings
'
,
'
presentationeditor/mobile/app/controller/edit/EditContainer
'
,
// 'presentationeditor/mobile/app/controller/edit/EditText',
// 'presentationeditor/mobile/app/controller/edit/EditParagraph',
// 'presentationeditor/mobile/app/controller/edit/EditTable',
...
...
@@ -212,7 +212,7 @@ require([
// 'presentationeditor/mobile/app/controller/edit/EditShape',
// 'presentationeditor/mobile/app/controller/edit/EditChart',
// 'presentationeditor/mobile/app/controller/edit/EditHyperlink',
// 'presentationeditor/mobile/app/controller/add/AddContainer',
'
presentationeditor/mobile/app/controller/add/AddContainer
'
// 'presentationeditor/mobile/app/controller/add/AddTable',
// 'presentationeditor/mobile/app/controller/add/AddShape',
// 'presentationeditor/mobile/app/controller/add/AddImage',
...
...
apps/presentationeditor/mobile/app/controller/add/AddContainer.js
0 → 100644
View file @
1b63975a
This diff is collapsed.
Click to expand it.
apps/presentationeditor/mobile/app/controller/edit/EditContainer.js
0 → 100644
View file @
1b63975a
This diff is collapsed.
Click to expand it.
apps/presentationeditor/mobile/app/view/Toolbar.js
View file @
1b63975a
...
...
@@ -81,16 +81,19 @@ define([
// Render layout
render
:
function
()
{
var
$el
=
$
(
this
.
el
);
var
me
=
this
,
$el
=
$
(
me
.
el
);
$el
.
prepend
(
this
.
template
({
$el
.
prepend
(
me
.
template
({
android
:
Common
.
SharedSettings
.
get
(
'
android
'
),
phone
:
Common
.
SharedSettings
.
get
(
'
phone
'
),
backTitle
:
Common
.
SharedSettings
.
get
(
'
android
'
)
?
''
:
this
.
textBack
,
scope
:
this
backTitle
:
Common
.
SharedSettings
.
get
(
'
android
'
)
?
''
:
me
.
textBack
,
scope
:
me
}));
return
this
;
$
(
'
.view-main .navbar
'
).
on
(
'
addClass removeClass
'
,
_
.
bind
(
me
.
onDisplayMainNavbar
,
me
));
return
me
;
},
setMode
:
function
(
mode
)
{
...
...
@@ -101,6 +104,11 @@ define([
}
},
onDisplayMainNavbar
:
function
(
e
)
{
var
$target
=
$
(
e
.
currentTarget
);
$
(
'
#editor_sdk
'
).
css
(
'
marginTop
'
,
$target
.
hasClass
(
'
navbar-hidden
'
)
?
0
:
''
);
},
// Search
searchToggle
:
function
()
{
if
(
$$
(
'
.searchbar.document
'
).
length
>
0
)
{
...
...
@@ -120,13 +128,13 @@ define([
// Editor
showEdition
:
function
()
{
//
PE.getController('EditContainer').showModal();
PE
.
getController
(
'
EditContainer
'
).
showModal
();
},
// Inserts
showInserts
:
function
()
{
//
PE.getController('AddContainer').showModal();
PE
.
getController
(
'
AddContainer
'
).
showModal
();
},
// Settings
...
...
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