Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
a1c39065
Commit
a1c39065
authored
Nov 01, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix markdown-preview events for new isPreview var
parent
518f277b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
app/assets/javascripts/vue_shared/components/markdown/header.vue
...ets/javascripts/vue_shared/components/markdown/header.vue
+12
-5
No files found.
app/assets/javascripts/vue_shared/components/markdown/header.vue
View file @
a1c39065
...
...
@@ -22,19 +22,26 @@
toggleMarkdownPreview
(
e
,
isPreview
,
form
)
{
if
(
e
.
target
.
blur
)
e
.
target
.
blur
();
if
(
this
.
isMarkdownForm
(
form
))
return
;
this
.
$emit
(
'
toggle-markdown
'
,
isPreview
);
},
toggleMarkdownPreviewShow
(
event
,
form
)
{
return
this
.
toggleMarkdownPreview
(
event
,
true
,
form
);
},
toggleMarkdownPreviewHide
(
event
,
form
)
{
return
this
.
toggleMarkdownPreview
(
event
,
false
,
form
);
},
},
mounted
()
{
$
(
document
).
on
(
'
markdown-preview:show.vue
'
,
this
.
toggleMarkdownPreview
);
$
(
document
).
on
(
'
markdown-preview:hide.vue
'
,
this
.
toggleMarkdownPreview
);
$
(
document
).
on
(
'
markdown-preview:show.vue
'
,
this
.
toggleMarkdownPreview
Show
);
$
(
document
).
on
(
'
markdown-preview:hide.vue
'
,
this
.
toggleMarkdownPreview
Hide
);
},
beforeDestroy
()
{
$
(
document
).
o
n
(
'
markdown-preview:show.vue
'
,
this
.
toggleMarkdownPrevie
w
);
$
(
document
).
off
(
'
markdown-preview:hide.vue
'
,
this
.
toggleMarkdownPreview
);
$
(
document
).
o
ff
(
'
markdown-preview:show.vue
'
,
this
.
toggleMarkdownPreviewSho
w
);
$
(
document
).
off
(
'
markdown-preview:hide.vue
'
,
this
.
toggleMarkdownPreview
Hide
);
},
};
</
script
>
...
...
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