| Line 82... |
Line 82... |
| 82 |
function navTabs() {
|
82 |
function navTabs() {
|
| 83 |
$('.nav-tabs a').click(function(e){
|
83 |
$('.nav-tabs a').click(function(e){
|
| 84 |
e.preventDefault();
|
84 |
e.preventDefault();
|
| 85 |
$(this).tab('show');
|
85 |
$(this).tab('show');
|
| 86 |
if ($(this).attr('id') == "quickTab") {
|
86 |
if ($(this).attr('id') == "quickTab") {
|
| 87 |
$(this).attr('class', 'nav-link active bg-white border-bottom-0');
|
87 |
$(this).attr('class', 'nav-link active bg-white');
|
| 88 |
$('#detailTab').attr('class', 'nav-link bg-light');
|
88 |
$('#detailTab').attr('class', 'nav-link bg-white invert');
|
| 89 |
} else /* detailTab */ {
|
89 |
} else /* detailTab */ {
|
| 90 |
$(this).attr('class', 'nav-link active bg-white border-bottom-0');
|
90 |
$(this).attr('class', 'nav-link active bg-white');
|
| 91 |
$('#quickTab').attr('class', 'nav-link bg-light');
|
91 |
$('#quickTab').attr('class', 'nav-link bg-white invert');
|
| 92 |
}
|
92 |
}
|
| 93 |
navTabs();
|
93 |
navTabs();
|
| 94 |
});
|
94 |
});
|
| 95 |
|
95 |
|
| 96 |
}
|
96 |
}
|
| Line 191... |
Line 191... |
| 191 |
xhttp.send("id=" + id + "&function=add&wl=" + wl + "&sessionTab=" + document.getElementById("sessionTab").value);
|
191 |
xhttp.send("id=" + id + "&function=add&wl=" + wl + "&sessionTab=" + document.getElementById("sessionTab").value);
|
| 192 |
}
|
192 |
}
|
| 193 |
|
193 |
|
| 194 |
function deleteWishlist(id, field, title, artist) {
|
194 |
function deleteWishlist(id, field, title, artist) {
|
| 195 |
$(field).tooltip('hide');
|
195 |
$(field).tooltip('hide');
|
| 196 |
if (confirm('Delete ' + title + ' by ' + artist + ' from wishlist?')) {
|
196 |
if (confirm('Remove ' + title + ' by ' + artist + ' from wishlist?')) {
|
| 197 |
var parent = field.parentNode.parentNode.parentNode;
|
197 |
var parent = field.parentNode.parentNode.parentNode;
|
| 198 |
var xhttp = new XMLHttpRequest();
|
198 |
var xhttp = new XMLHttpRequest();
|
| 199 |
xhttp.open("POST", "wishlistDB.php", true);
|
199 |
xhttp.open("POST", "wishlistDB.php", true);
|
| 200 |
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
200 |
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
| 201 |
xhttp.send("function=delete&id=" + id + "&sessionTab=" + document.getElementById("sessionTab").value);
|
201 |
xhttp.send("function=delete&id=" + id + "&sessionTab=" + document.getElementById("sessionTab").value);
|