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
8c9c4cbd
Commit
8c9c4cbd
authored
Sep 08, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Mobile] Bug 35768.
parent
e7d7f871
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
21 deletions
+41
-21
apps/documenteditor/mobile/app/controller/Main.js
apps/documenteditor/mobile/app/controller/Main.js
+15
-8
apps/presentationeditor/mobile/app/controller/Main.js
apps/presentationeditor/mobile/app/controller/Main.js
+11
-5
apps/spreadsheeteditor/mobile/app/controller/Main.js
apps/spreadsheeteditor/mobile/app/controller/Main.js
+15
-8
No files found.
apps/documenteditor/mobile/app/controller/Main.js
View file @
8c9c4cbd
...
...
@@ -457,6 +457,9 @@ define([
if
(
this
.
_isDocReady
)
return
;
if
(
this
.
_state
.
openDlg
)
uiApp
.
closeModal
(
this
.
_state
.
openDlg
);
var
me
=
this
,
value
;
...
...
@@ -983,8 +986,10 @@ define([
},
onAdvancedOptions
:
function
(
advOptions
)
{
if
(
this
.
_state
.
openDlg
)
return
;
var
type
=
advOptions
.
asc_getOptionId
(),
me
=
this
,
modal
;
me
=
this
;
if
(
type
==
Asc
.
c_oAscAdvancedOptionsID
.
TXT
)
{
var
picker
,
pages
=
[],
...
...
@@ -999,7 +1004,7 @@ define([
me
.
onLongActionEnd
(
Asc
.
c_oAscAsyncActionType
.
BlockInteraction
,
LoadingDocument
);
m
odal
=
uiApp
.
modal
({
m
e
.
_state
.
openDlg
=
uiApp
.
modal
({
title
:
me
.
advTxtOptions
,
text
:
''
,
afterText
:
...
...
@@ -1023,6 +1028,7 @@ define([
me
.
onLongActionBegin
(
Asc
.
c_oAscAsyncActionType
[
'
BlockInteraction
'
],
LoadingDocument
);
}
}
me
.
_state
.
openDlg
=
null
;
}
}
]
...
...
@@ -1040,8 +1046,8 @@ define([
});
// Vertical align
$$
(
m
odal
).
css
({
marginTop
:
-
Math
.
round
(
$$
(
m
odal
).
outerHeight
()
/
2
)
+
'
px
'
$$
(
m
e
.
_state
.
openDlg
).
css
({
marginTop
:
-
Math
.
round
(
$$
(
m
e
.
_state
.
openDlg
).
outerHeight
()
/
2
)
+
'
px
'
});
}
else
if
(
type
==
Asc
.
c_oAscAdvancedOptionsID
.
DRM
)
{
...
...
@@ -1049,7 +1055,7 @@ define([
me
.
onLongActionEnd
(
Asc
.
c_oAscAsyncActionType
.
BlockInteraction
,
LoadingDocument
);
m
odal
=
uiApp
.
modal
({
m
e
.
_state
.
openDlg
=
uiApp
.
modal
({
title
:
me
.
advDRMOptions
,
text
:
me
.
advDRMEnterPassword
,
afterText
:
'
<div class="input-field"><input type="password" name="modal-password" placeholder="
'
+
me
.
advDRMPassword
+
'
" class="modal-text-input"></div>
'
,
...
...
@@ -1058,20 +1064,21 @@ define([
text
:
'
OK
'
,
bold
:
true
,
onClick
:
function
()
{
var
password
=
$
(
m
odal
).
find
(
'
.modal-text-input[name="modal-password"]
'
).
val
();
var
password
=
$
(
m
e
.
_state
.
openDlg
).
find
(
'
.modal-text-input[name="modal-password"]
'
).
val
();
me
.
api
.
asc_setAdvancedOptions
(
type
,
new
Asc
.
asc_CDRMAdvancedOptions
(
password
));
if
(
!
me
.
_isDocReady
)
{
me
.
onLongActionBegin
(
Asc
.
c_oAscAsyncActionType
[
'
BlockInteraction
'
],
LoadingDocument
);
}
me
.
_state
.
openDlg
=
null
;
}
}
]
});
// Vertical align
$$
(
m
odal
).
css
({
marginTop
:
-
Math
.
round
(
$$
(
m
odal
).
outerHeight
()
/
2
)
+
'
px
'
$$
(
m
e
.
_state
.
openDlg
).
css
({
marginTop
:
-
Math
.
round
(
$$
(
m
e
.
_state
.
openDlg
).
outerHeight
()
/
2
)
+
'
px
'
});
}
},
...
...
apps/presentationeditor/mobile/app/controller/Main.js
View file @
8c9c4cbd
...
...
@@ -443,6 +443,9 @@ define([
if
(
this
.
_isDocReady
)
return
;
if
(
this
.
_state
.
openDlg
)
uiApp
.
closeModal
(
this
.
_state
.
openDlg
);
var
me
=
this
,
value
;
...
...
@@ -994,15 +997,17 @@ define([
},
onAdvancedOptions
:
function
(
advOptions
)
{
if
(
this
.
_state
.
openDlg
)
return
;
var
type
=
advOptions
.
asc_getOptionId
(),
me
=
this
,
modal
;
me
=
this
;
if
(
type
==
Asc
.
c_oAscAdvancedOptionsID
.
DRM
)
{
$
(
me
.
loadMask
).
hasClass
(
'
modal-in
'
)
&&
uiApp
.
closeModal
(
me
.
loadMask
);
me
.
onLongActionEnd
(
Asc
.
c_oAscAsyncActionType
.
BlockInteraction
,
LoadingDocument
);
m
odal
=
uiApp
.
modal
({
m
e
.
_state
.
openDlg
=
uiApp
.
modal
({
title
:
me
.
advDRMOptions
,
text
:
me
.
advDRMEnterPassword
,
afterText
:
'
<div class="input-field"><input type="password" name="modal-password" placeholder="
'
+
me
.
advDRMPassword
+
'
" class="modal-text-input"></div>
'
,
...
...
@@ -1011,20 +1016,21 @@ define([
text
:
'
OK
'
,
bold
:
true
,
onClick
:
function
()
{
var
password
=
$
(
m
odal
).
find
(
'
.modal-text-input[name="modal-password"]
'
).
val
();
var
password
=
$
(
m
e
.
_state
.
openDlg
).
find
(
'
.modal-text-input[name="modal-password"]
'
).
val
();
me
.
api
.
asc_setAdvancedOptions
(
type
,
new
Asc
.
asc_CDRMAdvancedOptions
(
password
));
if
(
!
me
.
_isDocReady
)
{
me
.
onLongActionBegin
(
Asc
.
c_oAscAsyncActionType
[
'
BlockInteraction
'
],
LoadingDocument
);
}
me
.
_state
.
openDlg
=
null
;
}
}
]
});
// Vertical align
$$
(
m
odal
).
css
({
marginTop
:
-
Math
.
round
(
$$
(
m
odal
).
outerHeight
()
/
2
)
+
'
px
'
$$
(
m
e
.
_state
.
openDlg
).
css
({
marginTop
:
-
Math
.
round
(
$$
(
m
e
.
_state
.
openDlg
).
outerHeight
()
/
2
)
+
'
px
'
});
}
},
...
...
apps/spreadsheeteditor/mobile/app/controller/Main.js
View file @
8c9c4cbd
...
...
@@ -455,6 +455,9 @@ define([
if
(
this
.
_isDocReady
)
return
;
if
(
this
.
_state
.
openDlg
)
uiApp
.
closeModal
(
this
.
_state
.
openDlg
);
var
me
=
this
,
value
;
...
...
@@ -1099,8 +1102,10 @@ define([
},
onAdvancedOptions
:
function
(
advOptions
)
{
if
(
this
.
_state
.
openDlg
)
return
;
var
type
=
advOptions
.
asc_getOptionId
(),
me
=
this
,
modal
;
me
=
this
;
if
(
type
==
Asc
.
c_oAscAdvancedOptionsID
.
CSV
)
{
var
picker
,
pages
=
[],
...
...
@@ -1115,7 +1120,7 @@ define([
me
.
onLongActionEnd
(
Asc
.
c_oAscAsyncActionType
.
BlockInteraction
,
LoadingDocument
);
m
odal
=
uiApp
.
modal
({
m
e
.
_state
.
openDlg
=
uiApp
.
modal
({
title
:
me
.
advCSVOptions
,
text
:
''
,
afterText
:
...
...
@@ -1141,6 +1146,7 @@ define([
me
.
onLongActionBegin
(
Asc
.
c_oAscAsyncActionType
.
BlockInteraction
,
LoadingDocument
);
}
}
me
.
_state
.
openDlg
=
null
;
}
}
]
...
...
@@ -1169,15 +1175,15 @@ define([
});
// Vertical align
$$
(
m
odal
).
css
({
marginTop
:
-
Math
.
round
(
$$
(
m
odal
).
outerHeight
()
/
2
)
+
'
px
'
$$
(
m
e
.
_state
.
openDlg
).
css
({
marginTop
:
-
Math
.
round
(
$$
(
m
e
.
_state
.
openDlg
).
outerHeight
()
/
2
)
+
'
px
'
});
}
else
if
(
type
==
Asc
.
c_oAscAdvancedOptionsID
.
DRM
)
{
$
(
me
.
loadMask
).
hasClass
(
'
modal-in
'
)
&&
uiApp
.
closeModal
(
me
.
loadMask
);
me
.
onLongActionEnd
(
Asc
.
c_oAscAsyncActionType
.
BlockInteraction
,
LoadingDocument
);
m
odal
=
uiApp
.
modal
({
m
e
.
_state
.
openDlg
=
uiApp
.
modal
({
title
:
me
.
advDRMOptions
,
text
:
me
.
advDRMEnterPassword
,
afterText
:
'
<div class="input-field"><input type="password" name="modal-password" placeholder="
'
+
me
.
advDRMPassword
+
'
" class="modal-text-input"></div>
'
,
...
...
@@ -1186,20 +1192,21 @@ define([
text
:
'
OK
'
,
bold
:
true
,
onClick
:
function
()
{
var
password
=
$
(
m
odal
).
find
(
'
.modal-text-input[name="modal-password"]
'
).
val
();
var
password
=
$
(
m
e
.
_state
.
openDlg
).
find
(
'
.modal-text-input[name="modal-password"]
'
).
val
();
me
.
api
.
asc_setAdvancedOptions
(
type
,
new
Asc
.
asc_CDRMAdvancedOptions
(
password
));
if
(
!
me
.
_isDocReady
)
{
me
.
onLongActionBegin
(
Asc
.
c_oAscAsyncActionType
.
BlockInteraction
,
LoadingDocument
);
}
me
.
_state
.
openDlg
=
null
;
}
}
]
});
// Vertical align
$$
(
m
odal
).
css
({
marginTop
:
-
Math
.
round
(
$$
(
m
odal
).
outerHeight
()
/
2
)
+
'
px
'
$$
(
m
e
.
_state
.
openDlg
).
css
({
marginTop
:
-
Math
.
round
(
$$
(
m
e
.
_state
.
openDlg
).
outerHeight
()
/
2
)
+
'
px
'
});
}
},
...
...
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