Merge pull request #405 from Robbt/fix/prevent-rename-of-clear-button

modified jquery find for shuffle and generate buttons to not target clear button
This commit is contained in:
Lucas Bickel 2018-01-09 20:44:57 +01:00 committed by GitHub
commit a51f33442e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -367,8 +367,8 @@ function setupUI() {
*/ */
var sortable = activeTab.find('.spl_sortable'), var sortable = activeTab.find('.spl_sortable'),
plContents = sortable.children(), plContents = sortable.children(),
shuffleButton = activeTab.find('button[name="shuffle_button"], #pl-bl-clear-content'), shuffleButton = activeTab.find('button[name="shuffle_button"]'),
generateButton = activeTab.find('button[name="generate_button"], #pl-bl-clear-content'), generateButton = activeTab.find('button[name="generate_button"]'),
fadesButton = activeTab.find('#spl_crossfade, #pl-bl-clear-content'); fadesButton = activeTab.find('#spl_crossfade, #pl-bl-clear-content');
if (!plContents.hasClass('spl_empty')) { if (!plContents.hasClass('spl_empty')) {