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
36f49fa8
Commit
36f49fa8
authored
Sep 16, 2016
by
Alexander Yuzhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/v4.1.2' of
https://github.com/ONLYOFFICE/web-apps
into hotfix/v4.1.2
parents
ebd0c0bb
89e6d51d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
apps/common/main/lib/controller/ReviewChanges.js
apps/common/main/lib/controller/ReviewChanges.js
+4
-4
apps/common/main/lib/view/OpenDialog.js
apps/common/main/lib/view/OpenDialog.js
+12
-6
No files found.
apps/common/main/lib/controller/ReviewChanges.js
View file @
36f49fa8
...
...
@@ -201,7 +201,7 @@ define([
if
(
typeof
value
==
'
object
'
)
{
_
.
each
(
value
,
function
(
obj
)
{
if
(
typeof
obj
===
'
string
'
)
changetext
+=
(
'
'
+
obj
);
changetext
+=
(
'
'
+
Common
.
Utils
.
String
.
htmlEncode
(
obj
)
);
else
{
switch
(
obj
)
{
case
0
:
...
...
@@ -220,7 +220,7 @@ define([
}
})
}
else
if
(
typeof
value
===
'
string
'
)
{
changetext
+=
(
'
'
+
value
);
changetext
+=
(
'
'
+
Common
.
Utils
.
String
.
htmlEncode
(
value
)
);
}
break
;
case
Asc
.
c_oAscRevisionsChangeType
.
TextRem
:
...
...
@@ -228,7 +228,7 @@ define([
if
(
typeof
value
==
'
object
'
)
{
_
.
each
(
value
,
function
(
obj
)
{
if
(
typeof
obj
===
'
string
'
)
changetext
+=
(
'
'
+
obj
);
changetext
+=
(
'
'
+
Common
.
Utils
.
String
.
htmlEncode
(
obj
)
);
else
{
switch
(
obj
)
{
case
0
:
...
...
@@ -247,7 +247,7 @@ define([
}
})
}
else
if
(
typeof
value
===
'
string
'
)
{
changetext
+=
(
'
'
+
value
);
changetext
+=
(
'
'
+
Common
.
Utils
.
String
.
htmlEncode
(
value
)
);
}
break
;
case
Asc
.
c_oAscRevisionsChangeType
.
ParaAdd
:
...
...
apps/common/main/lib/view/OpenDialog.js
View file @
36f49fa8
...
...
@@ -104,15 +104,21 @@ define([
this
.
$window
.
find
(
'
.tool
'
).
hide
();
this
.
$window
.
find
(
'
.dlg-btn
'
).
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnClick
,
this
));
if
(
this
.
type
==
Asc
.
c_oAscAdvancedOptionsID
.
DRM
)
{
var
me
=
this
;
me
.
inputPwd
=
new
Common
.
UI
.
InputField
({
this
.
inputPwd
=
new
Common
.
UI
.
InputField
({
el
:
$
(
'
#id-password-txt
'
),
type
:
'
password
'
,
allowBlank
:
false
,
validateOnBlur
:
false
});
}
else
this
.
$window
.
find
(
'
input
'
).
on
(
'
keypress
'
,
_
.
bind
(
this
.
onKeyPress
,
this
));
}
else
{
var
me
=
this
;
this
.
initCodePages
();
this
.
onPrimary
=
function
()
{
me
.
onBtnClick
();
return
false
;
};
}
}
},
...
...
@@ -138,9 +144,9 @@ define([
this
.
close
();
},
on
Primary
:
function
(
)
{
this
.
onBtnClick
();
return
false
;
on
KeyPress
:
function
(
event
)
{
if
(
event
.
keyCode
==
Common
.
UI
.
Keys
.
RETURN
)
this
.
onBtnClick
()
;
},
initCodePages
:
function
()
{
...
...
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