mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 03:15:31 -04:00
Add entry download button (#45)
This commit is contained in:
parent
dc084aff7c
commit
674da55bde
@ -35,7 +35,9 @@ function showModal(encodedPath, pages, percentage, encodedeTitle, encodedEntryTi
|
||||
updateProgress(titleID, entryID, 0);
|
||||
});
|
||||
|
||||
$('.uk-modal-title.break-word > a').attr('onclick', `edit("${entryID}")`);
|
||||
$('#modal-edit-btn').attr('onclick', `edit("${entryID}")`);
|
||||
|
||||
$('#modal-download-btn').attr('href', `/opds/download/${titleID}/${entryID}`);
|
||||
|
||||
UIkit.modal($('#modal')).show();
|
||||
styleModal();
|
||||
|
@ -10,9 +10,10 @@
|
||||
<% unless page == "home" %>
|
||||
|
||||
<% if is_admin %>
|
||||
<a class="uk-icon-button" uk-icon="icon:pencil"></a>
|
||||
<a id="modal-edit-btn" class="uk-icon-button" uk-icon="icon:pencil"></a>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<a id="modal-download-btn" class="uk-icon-button" uk-icon="icon:download"></a>
|
||||
</h3>
|
||||
</div>
|
||||
<p class="uk-text-meta uk-margin-remove-bottom break-word" id="path-text"></p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user