Skip to content

Commit

Permalink
Update play_control.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kiriles90 authored Apr 4, 2024
1 parent 698426d commit d3a72ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/lib/views/loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
var that = this;
App.vent.trigger('settings:close');
App.vent.trigger('about:close');
$('.movie-detail .button:not(#download-torrent), .show-details .sdo-watch, .sdow-watchnow, .show-details #download-torrent, .file-item, .file-item a, .result-item, .collection-paste, .collection-import, .seedbox .item-play, #torrent-list .item-row, #torrent-show-list .item-row').addClass('disabled');
$('.button:not(#download-torrent, #cancel-button), .show-details .sdo-watch, .sdow-watchnow, .show-details #download-torrent, .file-item, .file-item a, .result-item, .collection-paste, .collection-import, .seedbox .item-play, #torrent-list .item-row, #torrent-show-list .item-row').addClass('disabled');
$('#watch-now, #watch-trailer, .playerchoice, .file-item, .file-item a, .result-item, .result-item > *:not(.item-icon), .seedbox .item-play, #torrent-list .item-play, #torrent-show-list .item-play').prop('disabled', true);
// If a child was removed from above this view
App.vent.on('viewstack:pop', function() {
Expand Down Expand Up @@ -403,7 +403,7 @@
onBeforeDestroy: function() {
$('.filter-bar').show();
$('#header').removeClass('header-shadow');
$('.movie-detail .button, #watch-now, .show-details .sdo-watch, .sdow-watchnow, .playerchoice, .file-item, .file-item a, .result-item, .result-item > *:not(.item-icon), .trash-torrent, .collection-paste, .collection-import, .seedbox .item-play, .seedbox .exit-when-done, #torrent-list .item-row, #torrent-show-list .item-row, #torrent-list .item-play, #torrent-show-list .item-play').removeClass('disabled').removeProp('disabled');
$('.button:not(#cancel-button), #watch-now, .show-details .sdo-watch, .sdow-watchnow, .playerchoice, .file-item, .file-item a, .result-item, .result-item > *:not(.item-icon), .trash-torrent, .collection-paste, .collection-import, .seedbox .item-play, .seedbox .exit-when-done, #torrent-list .item-row, #torrent-show-list .item-row, #torrent-list .item-play, #torrent-show-list .item-play').removeClass('disabled').removeProp('disabled');
Mousetrap.bind(['esc', 'backspace'], function(e) {
App.vent.trigger('show:closeDetail');
App.vent.trigger('movie:closeDetail');
Expand Down
2 changes: 1 addition & 1 deletion src/app/lib/views/play_control.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
$('.playerchoicerefresh, .playerchoicehelp').tooltip({html: true, delay: {'show': 800,'hide': 100}});

if ($('.loading .maximize-icon').is(':visible') || $('.player .maximize-icon').is(':visible')) {
$('.movie-detail .button:not(#download-torrent)').addClass('disabled');
$('.button:not(#download-torrent, #cancel-button)').addClass('disabled');
$('#watch-now, #watch-trailer, .playerchoice').prop('disabled', true);
}
},
Expand Down
4 changes: 2 additions & 2 deletions src/app/lib/views/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@
$('#player_drag').show();
var that = this;

$('.movie-detail .button:not(#download-torrent), .show-details .sdo-watch, .sdow-watchnow, .show-details #download-torrent, .file-item, .file-item a, .result-item, .collection-paste, .collection-import, .seedbox .item-play, #torrent-list .item-row, #torrent-show-list .item-row').addClass('disabled');
$('.button:not(#download-torrent, #cancel-button), .show-details .sdo-watch, .sdow-watchnow, .show-details #download-torrent, .file-item, .file-item a, .result-item, .collection-paste, .collection-import, .seedbox .item-play, #torrent-list .item-row, #torrent-show-list .item-row').addClass('disabled');
$('#watch-now, #watch-trailer, .playerchoice, .file-item, .file-item a, .result-item, .result-item > *:not(.item-icon), .seedbox .item-play, #torrent-list .item-play, #torrent-show-list .item-play').prop('disabled', true);

// Double Click to toggle Fullscreen
Expand Down Expand Up @@ -1273,7 +1273,7 @@
if (this.inFullscreen && !win.isFullscreen) {
$('.btn-os.fullscreen').removeClass('active');
}
$('.movie-detail .button, #watch-now, .show-details .sdo-watch, .sdow-watchnow, .playerchoice, .file-item, .file-item a, .result-item, .result-item > *:not(.item-icon), .trash-torrent, .collection-paste, .collection-import, .seedbox .item-play, .seedbox .exit-when-done, #torrent-list .item-row, #torrent-show-list .item-row, #torrent-list .item-play, #torrent-show-list .item-play').removeClass('disabled').removeProp('disabled');
$('.button:not(#cancel-button), #watch-now, .show-details .sdo-watch, .sdow-watchnow, .playerchoice, .file-item, .file-item a, .result-item, .result-item > *:not(.item-icon), .trash-torrent, .collection-paste, .collection-import, .seedbox .item-play, .seedbox .exit-when-done, #torrent-list .item-row, #torrent-show-list .item-row, #torrent-list .item-play, #torrent-show-list .item-play').removeClass('disabled').removeProp('disabled');
this.unbindKeyboardShortcuts();
Mousetrap.bind('ctrl+v', function (e) {
});
Expand Down

0 comments on commit d3a72ea

Please sign in to comment.