Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
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
sdkjs
Commits
73eb2191
Commit
73eb2191
authored
Oct 19, 2017
by
Alexey Golubev
Committed by
GitHub
Oct 19, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #191 from ONLYOFFICE/feature/onlypass3
minimize bug
parents
e905c90d
485a176b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
common/Local/common.js
common/Local/common.js
+23
-4
No files found.
common/Local/common.js
View file @
73eb2191
...
...
@@ -201,9 +201,28 @@ window["UpdateInstallPlugins"] = function()
var
_plugins
=
JSON
.
parse
(
window
[
"
AscDesktopEditor
"
][
"
GetInstallPlugins
"
]());
_plugins
[
"
url
"
]
=
_plugins
[
"
url
"
].
replace
(
"
"
,
"
%20
"
);
var
_len
=
_plugins
[
"
pluginsData
"
].
length
;
for
(
var
i
=
0
;
i
<
_len
;
i
++
)
_plugins
[
"
pluginsData
"
][
i
][
"
baseUrl
"
]
=
_plugins
[
"
url
"
]
+
_plugins
[
"
pluginsData
"
][
i
][
"
guid
"
].
substring
(
4
)
+
"
/
"
;
for
(
var
i
=
0
;
i
<
_plugins
[
"
pluginsData
"
].
length
;
i
++
)
{
var
_plugin
=
_plugins
[
"
pluginsData
"
][
i
];
_plugin
[
"
baseUrl
"
]
=
_plugins
[
"
url
"
]
+
_plugin
[
"
guid
"
].
substring
(
4
)
+
"
/
"
;
var
isSystem
=
false
;
for
(
var
j
=
0
;
j
<
_plugin
[
"
variations
"
].
length
;
j
++
)
{
var
_variation
=
_plugin
[
"
variations
"
][
j
];
if
(
_variation
[
"
initDataType
"
]
==
"
desktop
"
)
{
isSystem
=
true
;
break
;
}
}
if
(
isSystem
)
{
_plugins
[
"
pluginsData
"
].
splice
(
i
,
1
);
--
i
;
}
}
var
_editor
=
window
[
"
Asc
"
][
"
editor
"
]
?
window
[
"
Asc
"
][
"
editor
"
]
:
window
.
editor
;
_editor
.
sendEvent
(
"
asc_onPluginsInit
"
,
_plugins
);
...
...
@@ -239,7 +258,7 @@ window["UpdateSystemPlugins"] = function()
for
(
var
i
=
0
;
i
<
_array
.
length
;
i
++
)
{
var
plugin
=
new
Asc
.
CPlugin
();
plugin
.
deserialize
(
_array
[
i
]);
plugin
[
"
deserialize
"
]
(
_array
[
i
]);
_arraySystem
.
push
(
plugin
);
}
...
...
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