Lines 1-4
Link Here
|
1 |
$(document).ready(function() { |
1 |
$(document).ready(function() { |
|
|
2 |
|
3 |
let urlParams = new URLSearchParams(window.location.search); |
4 |
if ( urlParams.has('modal') ) { |
5 |
let modal = urlParams.get('modal'); |
6 |
if ( modal == 'concern' ) { |
7 |
$("#addConcernModal").modal('show'); |
8 |
} |
9 |
} |
10 |
|
11 |
$('#addConcernModal').on('show.bs.modal', function (e) { |
12 |
if ( logged_in_user_id === "" ) { |
13 |
$('#modalAuth').append('<input type="hidden" name="return" value="'+window.location+'&modal=concern" />'); |
14 |
$('#loginModal').modal('show'); |
15 |
return false; |
16 |
} |
17 |
}); |
18 |
|
2 |
$('#addConcernModal').on('click', '#addConfirm', function(e) { |
19 |
$('#addConcernModal').on('click', '#addConfirm', function(e) { |
3 |
let reporter_id = $('#reporter_add').val(); |
20 |
let reporter_id = $('#reporter_add').val(); |
4 |
let biblio_id = $('#biblio_add').val(); |
21 |
let biblio_id = $('#biblio_add').val(); |
5 |
- |
|
|