Update bas_vk_tab.html
Browse files- bas_vk_tab.html +2 -10
bas_vk_tab.html
CHANGED
@@ -366,15 +366,7 @@ button:hover, #filter-clear:hover, #download-json:hover, #take-for-yourself:hove
|
|
366 |
// Download JSON functionality for selected rows
|
367 |
document.getElementById('download-json').addEventListener('click', function() {
|
368 |
var selectedRows = table.getSelectedData();
|
369 |
-
|
370 |
-
var blob = new Blob([jsonData], { type: 'application/json' });
|
371 |
-
var url = URL.createObjectURL(blob);
|
372 |
-
var a = document.createElement('a');
|
373 |
-
a.href = url;
|
374 |
-
a.download = 'data.json';
|
375 |
-
document.body.appendChild(a);
|
376 |
-
a.click();
|
377 |
-
URL.revokeObjectURL(url);
|
378 |
});
|
379 |
|
380 |
// New Download JSON functionality for all data
|
@@ -393,7 +385,7 @@ button:hover, #filter-clear:hover, #download-json:hover, #take-for-yourself:hove
|
|
393 |
// Take for yourself functionality
|
394 |
document.getElementById('take-for-yourself').addEventListener('click', function() {
|
395 |
var selectedRows = table.getSelectedData();
|
396 |
-
console.log('Selected rows:', selectedRows);
|
397 |
});
|
398 |
})
|
399 |
.catch(error => {
|
|
|
366 |
// Download JSON functionality for selected rows
|
367 |
document.getElementById('download-json').addEventListener('click', function() {
|
368 |
var selectedRows = table.getSelectedData();
|
369 |
+
console.log('Selected rows for mailing:', selectedRows);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
370 |
});
|
371 |
|
372 |
// New Download JSON functionality for all data
|
|
|
385 |
// Take for yourself functionality
|
386 |
document.getElementById('take-for-yourself').addEventListener('click', function() {
|
387 |
var selectedRows = table.getSelectedData();
|
388 |
+
console.log('Selected rows for take for yourself:', selectedRows);
|
389 |
});
|
390 |
})
|
391 |
.catch(error => {
|