mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Exporter check rating key first
This commit is contained in:
parent
14bb377794
commit
28c6163a31
3 changed files with 21 additions and 18 deletions
|
@ -512,7 +512,7 @@ DOCUMENTATION :: END
|
|||
% endif
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-dark export-button" id="toggle-export-modal" data-toggle="modal" data-target="#export-modal"
|
||||
data-id="${data['rating_key']}">
|
||||
data-section_id="${data['section_id']}" data-rating_key="${data['rating_key']}">
|
||||
<i class="fa fa-file-export"></i> Export Metadata
|
||||
</button>
|
||||
</div>
|
||||
|
@ -844,7 +844,10 @@ DOCUMENTATION :: END
|
|||
$("#toggle-export-modal").click(function() {
|
||||
$.ajax({
|
||||
url: 'export_metadata_modal',
|
||||
data: { rating_key: $(this).data('id') },
|
||||
data: {
|
||||
section_id: $(this).data('section_id'),
|
||||
rating_key: $(this).data('rating_key')
|
||||
},
|
||||
cache: false,
|
||||
async: true,
|
||||
complete: function(xhr, status) {
|
||||
|
|
|
@ -322,7 +322,7 @@ DOCUMENTATION :: END
|
|||
% if _session['user_group'] == 'admin':
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-dark export-button" id="toggle-export-modal" data-toggle="modal" data-target="#export-modal"
|
||||
data-id="${data['section_id']}">
|
||||
data-section_id="${data['section_id']}">
|
||||
<i class="fa fa-file-export"></i> Export Metadata
|
||||
</button>
|
||||
</div>
|
||||
|
@ -563,7 +563,7 @@ DOCUMENTATION :: END
|
|||
$("#toggle-export-modal").click(function() {
|
||||
$.ajax({
|
||||
url: 'export_metadata_modal',
|
||||
data: { section_id: $(this).data('id') },
|
||||
data: { section_id: $(this).data('section_id') },
|
||||
cache: false,
|
||||
async: true,
|
||||
complete: function(xhr, status) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue