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
493ec487
Commit
493ec487
authored
Nov 21, 2016
by
Maxim Kadushkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[embed] fix bug 33454
parent
f4b556d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
apps/common/embed/lib/controller/modals.js
apps/common/embed/lib/controller/modals.js
+3
-3
No files found.
apps/common/embed/lib/controller/modals.js
View file @
493ec487
...
...
@@ -59,12 +59,12 @@
var
_url
;
switch
(
$
(
e
.
target
).
attr
(
'
data-name
'
))
{
case
'
facebook
'
:
_url
=
'
https://www.facebook.com/sharer/sharer.php?u=
'
+
appConfig
.
shareUrl
+
'
&t=
'
+
appConfig
.
docTitle
;
_url
=
'
https://www.facebook.com/sharer/sharer.php?u=
'
+
appConfig
.
shareUrl
+
'
&t=
'
+
encodeURI
(
appConfig
.
docTitle
)
;
window
.
open
(
_url
,
''
,
'
menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600
'
);
break
;
case
'
twitter
'
:
_url
=
'
https://twitter.com/share?url=
'
+
appConfig
.
shareUrl
;
!!
appConfig
.
docTitle
&&
(
_url
+=
'
&text=
'
+
appConfig
.
docTitle
);
_url
=
'
https://twitter.com/share?url=
'
+
encodeURIComponent
(
appConfig
.
shareUrl
)
;
!!
appConfig
.
docTitle
&&
(
_url
+=
encodeURIComponent
(
'
&text=
'
+
appConfig
.
docTitle
)
);
window
.
open
(
_url
,
''
,
'
menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600
'
);
break
;
case
'
gplus
'
:
...
...
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