mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
add 'jump to title' to home modal
This commit is contained in:
parent
a2c7638141
commit
ddb6a860ae
@ -15,10 +15,14 @@ function showModal(encodedPath, pages, percentage, encodedeTitle, encodedEntryTi
|
|||||||
if (percentage === 100) {
|
if (percentage === 100) {
|
||||||
$('#read-btn').attr('hidden', '');
|
$('#read-btn').attr('hidden', '');
|
||||||
}
|
}
|
||||||
$('#modal-title').find('span').text(entry);
|
|
||||||
$('#modal-title').next().attr('data-id', titleID);
|
$('#modal-title-link').text(title);
|
||||||
$('#modal-title').next().attr('data-entry-id', entryID);
|
$('#modal-title-link').attr('href', '/book/' + titleID);
|
||||||
$('#modal-title').next().find('.title-rename-field').val(entry);
|
|
||||||
|
$('#modal-entry-title').find('span').text(entry);
|
||||||
|
$('#modal-entry-title').next().attr('data-id', titleID);
|
||||||
|
$('#modal-entry-title').next().attr('data-entry-id', entryID);
|
||||||
|
$('#modal-entry-title').next().find('.title-rename-field').val(entry);
|
||||||
$('#path-text').text(zipPath);
|
$('#path-text').text(zipPath);
|
||||||
$('#pages-text').text(pages + ' pages');
|
$('#pages-text').text(pages + ' pages');
|
||||||
|
|
||||||
|
@ -27,7 +27,8 @@
|
|||||||
<button class="uk-modal-close-default" type="button" uk-close></button>
|
<button class="uk-modal-close-default" type="button" uk-close></button>
|
||||||
<div class="uk-modal-header">
|
<div class="uk-modal-header">
|
||||||
<div>
|
<div>
|
||||||
<h3 class="uk-modal-title break-word" id="modal-title"><span></span>
|
<h4 class="uk-margin-remove-bottom"><a id="modal-title-link"></a></h4>
|
||||||
|
<h3 class="uk-modal-title break-word uk-margin-remove-top" id="modal-entry-title"><span></span>
|
||||||
|
|
||||||
<% if is_admin %>
|
<% if is_admin %>
|
||||||
<a class="uk-icon-button" uk-icon="icon:pencil"></a>
|
<a class="uk-icon-button" uk-icon="icon:pencil"></a>
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
<button class="uk-modal-close-default" type="button" uk-close></button>
|
<button class="uk-modal-close-default" type="button" uk-close></button>
|
||||||
<div class="uk-modal-header">
|
<div class="uk-modal-header">
|
||||||
<div>
|
<div>
|
||||||
<h3 class="uk-modal-title break-word" id="modal-title"><span></span>
|
<h3 class="uk-modal-title break-word" id="modal-entry-title"><span></span>
|
||||||
|
|
||||||
<% if is_admin %>
|
<% if is_admin %>
|
||||||
<a class="uk-icon-button" uk-icon="icon:pencil"></a>
|
<a class="uk-icon-button" uk-icon="icon:pencil"></a>
|
||||||
@ -105,7 +105,7 @@
|
|||||||
<button class="uk-modal-close-default" type="button" uk-close></button>
|
<button class="uk-modal-close-default" type="button" uk-close></button>
|
||||||
<div class="uk-modal-header">
|
<div class="uk-modal-header">
|
||||||
<div>
|
<div>
|
||||||
<h3 class="uk-modal-title break-word" id="modal-title">Edit</h3>
|
<h3 class="uk-modal-title break-word" id="modal-entry-title">Edit</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-modal-body">
|
<div class="uk-modal-body">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user