Skip to content

Is it possible to remove download image link? #107

@charlesroper

Description

@charlesroper

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>'))

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions