fixed BUG-43, change author and edit link updates now
This commit is contained in:
@@ -25,6 +25,15 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
// when we choose a new author from the drop-down list, then we need to change
|
||||||
|
// the associated href
|
||||||
|
function ChgAuth(cnt)
|
||||||
|
{
|
||||||
|
aid=$("#author-"+cnt).val()
|
||||||
|
console.log("new auth id="+aid)
|
||||||
|
$("#author-edit-"+cnt).attr( 'onclick', "window.location.href='/author/" + aid + "'" )
|
||||||
|
}
|
||||||
|
|
||||||
function ConfirmRemoveParentAndSubsFromSeries(pid,bid,rem)
|
function ConfirmRemoveParentAndSubsFromSeries(pid,bid,rem)
|
||||||
{
|
{
|
||||||
$('#dbox-title').html('Confirm: Removing Parent Book from Series')
|
$('#dbox-title').html('Confirm: Removing Parent Book from Series')
|
||||||
@@ -263,7 +272,7 @@ function AddAuthorToBook(num) {
|
|||||||
<use xlink:href="{{url_for('static', filename='icons.svg')}}#edit"/>
|
<use xlink:href="{{url_for('static', filename='icons.svg')}}#edit"/>
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
<select class="form-select input-group-append" name="author-{{cnt.idx}}" id="author-{{cnt.idx}}">
|
<select class="form-select input-group-append" name="author-{{cnt.idx}}" id="author-{{cnt.idx}}" onChange="ChgAuth({{cnt.idx}})">
|
||||||
{% for auth in author_list %}
|
{% for auth in author_list %}
|
||||||
{% set aname=auth.surname+", "+auth.firstnames %}
|
{% set aname=auth.surname+", "+auth.firstnames %}
|
||||||
<option value="{{auth.id}}"
|
<option value="{{auth.id}}"
|
||||||
|
|||||||
Reference in New Issue
Block a user