CC-4246: Smart Playlist: Click shuffle button will shuffle the contents multiple times
-code refactor
This commit is contained in:
parent
2e505ee970
commit
ffa4c131ee
|
@ -328,15 +328,11 @@ function setupUI() {
|
|||
if (plContents.text() !== 'Empty playlist') {
|
||||
if (shuffleButton.hasClass('ui-state-disabled')) {
|
||||
shuffleButton.removeClass('ui-state-disabled');
|
||||
}
|
||||
if (shuffleButton.attr('disabled') !== undefined) {
|
||||
shuffleButton.removeAttr('disabled');
|
||||
}
|
||||
} else if (!shuffleButton.hasClass('ui-state-disabled')) {
|
||||
if (shuffleButton.attr('disabled') === undefined) {
|
||||
shuffleButton.attr('disabled', 'disabled');
|
||||
shuffleButton.addClass('ui-state-disabled');
|
||||
}
|
||||
shuffleButton.addClass('ui-state-disabled');
|
||||
shuffleButton.attr('disabled', 'disabled');
|
||||
}
|
||||
|
||||
var dynamic_length = target_length;
|
||||
|
|
Loading…
Reference in New Issue