forked from johnkelsh/moodle-mod_lightboxgallery
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
I've just installed this plugin for my org and have had a request from a teacher asking if its possible to disable to the download image button. I can't see a way of doing this in settings.
In the code, it looks like I can remove these lines from the JS:
.append(create('<a id="bottomNavDownload" href="#"></a>')) |
moodle-mod_lightboxgallery/yui/lightbox/lightbox.js
Lines 325 to 330 in e2e948e
Y.one('#bottomNavDownload').on(CLICK, function (evt) { | |
evt.halt(); | |
var active = this.get(ACTIVE_IMAGE); | |
window.open(this.get(IMAGE_ARRAY)[active][0] + '?forcedownload=1', '_blank'); | |
}, this); |
Is that correct? I'm a bit wary of hacking the code, and I don't know enough about Moodle plugin development to submit a PR with it done "properly" (i.e. adding a setting). Would this be difficult to add?
We're currently on Moodle 3.9.
Many thanks!
Metadata
Metadata
Assignees
Labels
No labels