mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-15 09:36:23 -04:00
Use ion for arrow swap icons
This commit is contained in:
parent
a8c0023eb0
commit
890802481b
8 changed files with 142 additions and 90 deletions
|
@ -46,3 +46,18 @@ function remove_compilation_item(target) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
function move_compilation_video_before(target) {
|
||||
var tile = target.parentNode.parentNode.parentNode.parentNode.parentNode;
|
||||
tile.style.display = 'none';
|
||||
|
||||
var url = '/compilation_ajax?action_move_video_before=1&redirect=false' +
|
||||
'&set_video_id=' + target.getAttribute('data-index') +
|
||||
'&compilation_id=' + target.getAttribute('data-compid');
|
||||
|
||||
helpers.xhr('POST', url, {payload: payload}, {
|
||||
onNon200: function (xhr) {
|
||||
tile.style.display = '';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue