mirror of
https://github.com/krateng/maloja.git
synced 2025-07-31 14:33:50 -04:00
More interface fixing and notifications
This commit is contained in:
parent
d208290956
commit
98c791064d
@ -634,7 +634,8 @@ def delete_scrobble(timestamp):
|
|||||||
"""Internal Use Only"""
|
"""Internal Use Only"""
|
||||||
result = database.remove_scrobble(timestamp)
|
result = database.remove_scrobble(timestamp)
|
||||||
return {
|
return {
|
||||||
"status":"success"
|
"status":"success",
|
||||||
|
"desc":f"Scrobble was deleted!"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -687,10 +688,11 @@ def reparse_scrobble(timestamp):
|
|||||||
result = database.reparse_scrobble(timestamp)
|
result = database.reparse_scrobble(timestamp)
|
||||||
if result:
|
if result:
|
||||||
return {
|
return {
|
||||||
"status":"success"
|
"status":"success",
|
||||||
|
"desc":f"Scrobble was reparsed!"
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
return {
|
return {
|
||||||
"status":"no-operation",
|
"status":"no-operation",
|
||||||
"desc":"No action was taken."
|
"desc":"The scrobble was not changed."
|
||||||
}
|
}
|
||||||
|
@ -655,10 +655,10 @@ table.list tr td.scrobble_action_area.active span.scrobble_action_type.active sp
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.list tr.removed td.scrobble_action_area span.scrobble_action_type span.confirmactions {
|
table.list tr.removed td.scrobble_action_area span.scrobble_action_type {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
table.list tr.removed td.scrobble_action_area span.scrobble_action_type span.initializeactions {
|
table.list tr.removed td.scrobble_action_area span.scrobble_action_type {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
table.list tr.removed {
|
table.list tr.removed {
|
||||||
|
@ -19,7 +19,7 @@ function toggleDeleteConfirm(element) {
|
|||||||
function deleteScrobble(id,element) {
|
function deleteScrobble(id,element) {
|
||||||
var callback_func = function(req){
|
var callback_func = function(req){
|
||||||
if (req.status == 200) {
|
if (req.status == 200) {
|
||||||
element.parentElement.parentElement.parentElement.classList.add('removed');
|
element.parentElement.parentElement.parentElement.parentElement.classList.add('removed');
|
||||||
notifyCallback(req);
|
notifyCallback(req);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user