Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
schedules
Commits
23755582
Commit
23755582
authored
Feb 20, 2019
by
Zac Wood
Browse files
Merge branch '34-makeShareLink' into 'master'
made the share link clickable Closes
#34
See merge request
!41
parents
7c54416a
f74c7ce6
Pipeline
#3961
passed with stage
in 2 minutes and 42 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
schedules/app/javascript/packs/schedules.js
View file @
23755582
...
...
@@ -69,6 +69,7 @@ const initListeners = () => {
document
.
getElementById
(
'
save-image
'
).
onclick
=
saveImage
;
document
.
getElementById
(
'
share-url
'
).
innerText
=
`
${
window
.
location
.
protocol
}
//
${
window
.
location
.
hostname
}
/schedule/view?crns=
${
Cart
.
_courses
.
join
(
'
,
'
)}
`
;
document
.
getElementById
(
'
share-url
'
).
href
=
`
${
window
.
location
.
protocol
}
//
${
window
.
location
.
hostname
}
/schedule/view?crns=
${
Cart
.
_courses
.
join
(
'
,
'
)}
`
;
};
if
(
!
HTMLCanvasElement
.
prototype
.
toBlob
)
{
...
...
schedules/app/views/schedules/show.html.erb
View file @
23755582
...
...
@@ -34,7 +34,7 @@
<h3
id=
"share-header"
>
Share
</h3>
Want to share your schedule with your friends? Send them this link:
<br/>
<
blockquote
><code
id=
"share-url"
></
code></blockquote
>
<
a
id=
"share-url"
></
a
>
<template
id=
"events"
data-events=
"
<%=
@events
.
to_json
%>
"
></template>
...
...
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