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 (plContents.text() !== 'Empty playlist') {
|
||||||
if (shuffleButton.hasClass('ui-state-disabled')) {
|
if (shuffleButton.hasClass('ui-state-disabled')) {
|
||||||
shuffleButton.removeClass('ui-state-disabled');
|
shuffleButton.removeClass('ui-state-disabled');
|
||||||
}
|
|
||||||
if (shuffleButton.attr('disabled') !== undefined) {
|
|
||||||
shuffleButton.removeAttr('disabled');
|
shuffleButton.removeAttr('disabled');
|
||||||
}
|
}
|
||||||
} else if (!shuffleButton.hasClass('ui-state-disabled')) {
|
} else if (!shuffleButton.hasClass('ui-state-disabled')) {
|
||||||
if (shuffleButton.attr('disabled') === undefined) {
|
shuffleButton.addClass('ui-state-disabled');
|
||||||
shuffleButton.attr('disabled', 'disabled');
|
shuffleButton.attr('disabled', 'disabled');
|
||||||
shuffleButton.addClass('ui-state-disabled');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var dynamic_length = target_length;
|
var dynamic_length = target_length;
|
||||||
|
|
Loading…
Reference in New Issue