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
(function() { | |
'use strict'; | |
if (document.getElementsByClassName('js-d-select-box').length === 0) { | |
throw new Error("No more orders! App stoped arbitrarily."); | |
} | |
Array.from(document.getElementsByClassName('js-d-select-box')).forEach( | |
function(currentSelect, index, arr) { | |
if (currentSelect.getAttribute('data-automation') == 'order-actions-select') { | |
Array.from(currentSelect.children).forEach( | |
function(currentOption, index, arr) { |
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
(function() { | |
'use strict'; | |
if (document.getElementsByClassName('js-d-select-box').length === 0) { | |
throw new Error("No more orders! App stoped arbitrarily."); | |
} | |
Array.from(document.getElementsByClassName('js-d-select-box')).forEach( | |
function(currentSelect, index, arr) { | |
if (currentSelect.getAttribute('data-automation') == 'order-actions-select') { | |
Array.from(currentSelect.children).forEach( | |
function(currentOption, index, arr) { |