Created
January 23, 2016 16:24
-
-
Save AurelienLavorel/de7e1aecadfb3de996fe to your computer and use it in GitHub Desktop.
Quick import colors Magento2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var colors = ["Sky blue","Antique violet","..."]; | |
var i = 1; | |
colors.each(function(color) { | |
console.log(color, i); | |
jQuery('button#add_new_option_button').click(); | |
jQuery('td.col-option_' + i + ' > input').val(color); | |
i++; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
great! thank you.