mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03: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"""
|
||||
result = database.remove_scrobble(timestamp)
|
||||
return {
|
||||
"status":"success"
|
||||
"status":"success",
|
||||
"desc":f"Scrobble was deleted!"
|
||||
}
|
||||
|
||||
|
||||
@ -687,10 +688,11 @@ def reparse_scrobble(timestamp):
|
||||
result = database.reparse_scrobble(timestamp)
|
||||
if result:
|
||||
return {
|
||||
"status":"success"
|
||||
"status":"success",
|
||||
"desc":f"Scrobble was reparsed!"
|
||||
}
|
||||
else:
|
||||
return {
|
||||
"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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
table.list tr.removed {
|
||||
|
@ -19,7 +19,7 @@ function toggleDeleteConfirm(element) {
|
||||
function deleteScrobble(id,element) {
|
||||
var callback_func = function(req){
|
||||
if (req.status == 200) {
|
||||
element.parentElement.parentElement.parentElement.classList.add('removed');
|
||||
element.parentElement.parentElement.parentElement.parentElement.classList.add('removed');
|
||||
notifyCallback(req);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user