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
71b82e74
Commit
71b82e74
authored
Jun 16, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commenting in view mode: set autosave to true.
parent
4f30ea4f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
13 deletions
+24
-13
apps/documenteditor/main/app/controller/LeftMenu.js
apps/documenteditor/main/app/controller/LeftMenu.js
+6
-4
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+1
-0
apps/presentationeditor/main/app/controller/LeftMenu.js
apps/presentationeditor/main/app/controller/LeftMenu.js
+7
-5
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+3
-1
apps/spreadsheeteditor/main/app/controller/LeftMenu.js
apps/spreadsheeteditor/main/app/controller/LeftMenu.js
+4
-2
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+3
-1
No files found.
apps/documenteditor/main/app/controller/LeftMenu.js
View file @
71b82e74
...
...
@@ -313,11 +313,13 @@ define([
case
'
0
'
:
this
.
api
.
SetFontRenderingMode
(
3
);
break
;
}
value
=
Common
.
localStorage
.
getItem
(
"
de-settings-autosave
"
);
this
.
api
.
asc_setAutoSaveGap
(
parseInt
(
value
));
if
(
this
.
mode
.
isEdit
)
{
value
=
Common
.
localStorage
.
getItem
(
"
de-settings-autosave
"
);
this
.
api
.
asc_setAutoSaveGap
(
parseInt
(
value
));
value
=
Common
.
localStorage
.
getItem
(
"
de-settings-spellcheck
"
);
this
.
api
.
asc_setSpellCheck
(
value
===
null
||
parseInt
(
value
)
==
1
);
value
=
Common
.
localStorage
.
getItem
(
"
de-settings-spellcheck
"
);
this
.
api
.
asc_setSpellCheck
(
value
===
null
||
parseInt
(
value
)
==
1
);
}
value
=
Common
.
localStorage
.
getItem
(
"
de-settings-showsnaplines
"
);
this
.
api
.
put_ShowSnapLines
(
value
===
null
||
parseInt
(
value
)
==
1
);
...
...
apps/documenteditor/main/app/controller/Main.js
View file @
71b82e74
...
...
@@ -812,6 +812,7 @@ define([
}
else
if
(
!
me
.
appOptions
.
isEdit
&&
me
.
appOptions
.
canComments
)
{
me
.
_state
.
fastCoauth
=
true
;
me
.
api
.
asc_SetFastCollaborative
(
me
.
_state
.
fastCoauth
);
me
.
api
.
asc_setAutoSaveGap
(
1
);
}
else
{
me
.
_state
.
fastCoauth
=
false
;
me
.
api
.
asc_SetFastCollaborative
(
me
.
_state
.
fastCoauth
);
...
...
apps/presentationeditor/main/app/controller/LeftMenu.js
View file @
71b82e74
...
...
@@ -232,9 +232,6 @@ define([
var
value
=
Common
.
localStorage
.
getItem
(
"
pe-settings-inputmode
"
);
this
.
api
.
SetTextBoxInputMode
(
parseInt
(
value
)
==
1
);
value
=
Common
.
localStorage
.
getItem
(
"
pe-settings-spellcheck
"
);
this
.
api
.
asc_setSpellCheck
(
parseInt
(
value
)
==
1
);
/** coauthoring begin **/
if
(
this
.
mode
.
isEdit
&&
!
this
.
mode
.
isOffline
&&
this
.
mode
.
canCoAuthoring
)
{
value
=
Common
.
localStorage
.
getItem
(
"
pe-settings-coauthmode
"
);
...
...
@@ -242,8 +239,13 @@ define([
}
/** coauthoring end **/
value
=
Common
.
localStorage
.
getItem
(
"
pe-settings-autosave
"
);
this
.
api
.
asc_setAutoSaveGap
(
parseInt
(
value
));
if
(
this
.
mode
.
isEdit
)
{
value
=
Common
.
localStorage
.
getItem
(
"
pe-settings-autosave
"
);
this
.
api
.
asc_setAutoSaveGap
(
parseInt
(
value
));
value
=
Common
.
localStorage
.
getItem
(
"
pe-settings-spellcheck
"
);
this
.
api
.
asc_setSpellCheck
(
parseInt
(
value
)
==
1
);
}
value
=
Common
.
localStorage
.
getItem
(
"
pe-settings-showsnaplines
"
);
this
.
api
.
put_ShowSnapLines
(
value
===
null
||
parseInt
(
value
)
==
1
);
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
71b82e74
...
...
@@ -587,8 +587,10 @@ define([
value
=
0
;
// use customization.autosave only when pe-settings-coauthmode and pe-settings-autosave are null
}
me
.
_state
.
fastCoauth
=
(
value
===
null
||
parseInt
(
value
)
==
1
);
}
else
}
else
{
me
.
_state
.
fastCoauth
=
(
!
me
.
appOptions
.
isEdit
&&
me
.
appOptions
.
canComments
);
me
.
_state
.
fastCoauth
&&
me
.
api
.
asc_setAutoSaveGap
(
1
);
}
me
.
api
.
asc_SetFastCollaborative
(
me
.
_state
.
fastCoauth
);
/** coauthoring end **/
...
...
apps/spreadsheeteditor/main/app/controller/LeftMenu.js
View file @
71b82e74
...
...
@@ -266,8 +266,10 @@ define([
}
/** coauthoring end **/
value
=
Common
.
localStorage
.
getItem
(
"
sse-settings-autosave
"
);
this
.
api
.
asc_setAutoSaveGap
(
parseInt
(
value
));
if
(
this
.
mode
.
isEdit
)
{
value
=
Common
.
localStorage
.
getItem
(
"
sse-settings-autosave
"
);
this
.
api
.
asc_setAutoSaveGap
(
parseInt
(
value
));
}
value
=
Common
.
localStorage
.
getItem
(
"
sse-settings-func-locale
"
);
if
(
value
)
value
=
SSE
.
Views
.
FormulaLang
.
get
(
value
);
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
71b82e74
...
...
@@ -556,8 +556,10 @@ define([
value
=
0
;
// use customization.autosave only when sse-settings-coauthmode and sse-settings-autosave are null
}
this
.
_state
.
fastCoauth
=
(
value
===
null
||
parseInt
(
value
)
==
1
);
}
else
}
else
{
this
.
_state
.
fastCoauth
=
(
!
this
.
appOptions
.
isEdit
&&
this
.
appOptions
.
canComments
);
this
.
_state
.
fastCoauth
&&
this
.
api
.
asc_setAutoSaveGap
(
1
);
}
this
.
api
.
asc_SetFastCollaborative
(
this
.
_state
.
fastCoauth
);
/** coauthoring end **/
...
...
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