diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index b740197b4..55b9cf867 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -6568,20 +6568,22 @@ }, flags: function() { var flag, fn, select, _i, _len, _ref; - fn = function(val) { - return $.el('option', { - value: val[0], - textContent: val[1] - }); - }; select = $.el('select', { name: 'flag', className: 'flagSelector' }); + fn = function(val) { + var el; + el = $.el('option', { + value: val[0], + textContent: val[1] + }); + return $.add(select, el); + }; _ref = [['0', 'None'], ['US', 'American'], ['KP', 'Best Korean'], ['BL', 'Black Nationalist'], ['CM', 'Communist'], ['CF', 'Confederate'], ['RE', 'Conservative'], ['EU', 'European'], ['GY', 'Gay'], ['PC', 'Hippie'], ['IL', 'Israeli'], ['DM', 'Liberal'], ['RP', 'Libertarian'], ['MF', 'Muslim'], ['NZ', 'Nazi'], ['OB', 'Obama'], ['PR', 'Pirate'], ['RB', 'Rebel'], ['TP', 'Tea Partier'], ['TX', 'Texan'], ['TR', 'Tree Hugger'], ['WP', 'White Supremacist']]; for (_i = 0, _len = _ref.length; _i < _len; _i++) { flag = _ref[_i]; - $.add(select, fn(flag)); + fn(flag); } return select; }, diff --git a/builds/crx/script.js b/builds/crx/script.js index 6179f51b2..61c4a6a43 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -6613,20 +6613,22 @@ }, flags: function() { var flag, fn, select, _i, _len, _ref; - fn = function(val) { - return $.el('option', { - value: val[0], - textContent: val[1] - }); - }; select = $.el('select', { name: 'flag', className: 'flagSelector' }); + fn = function(val) { + var el; + el = $.el('option', { + value: val[0], + textContent: val[1] + }); + return $.add(select, el); + }; _ref = [['0', 'None'], ['US', 'American'], ['KP', 'Best Korean'], ['BL', 'Black Nationalist'], ['CM', 'Communist'], ['CF', 'Confederate'], ['RE', 'Conservative'], ['EU', 'European'], ['GY', 'Gay'], ['PC', 'Hippie'], ['IL', 'Israeli'], ['DM', 'Liberal'], ['RP', 'Libertarian'], ['MF', 'Muslim'], ['NZ', 'Nazi'], ['OB', 'Obama'], ['PR', 'Pirate'], ['RB', 'Rebel'], ['TP', 'Tea Partier'], ['TX', 'Texan'], ['TR', 'Tree Hugger'], ['WP', 'White Supremacist']]; for (_i = 0, _len = _ref.length; _i < _len; _i++) { flag = _ref[_i]; - $.add(select, fn(flag)); + fn(flag); } return select; }, diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 495baf635..445ab751f 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -550,14 +550,17 @@ QR = $.event 'QRDialogCreation', null, dialog flags: -> - fn = (val) -> $.el 'option', - value: val[0] - textContent: val[1] select = $.el 'select', name: 'flag' className: 'flagSelector' - $.add select, fn flag for flag in [ + fn = (val) -> + el = $.el 'option', + value: val[0] + textContent: val[1] + $.add select, el + + fn flag for flag in [ ['0', 'None'] ['US', 'American'] ['KP', 'Best Korean']