function patchUpdateSetPickerIcon() {
      function callback(invokedOn, selectedMenu) {
        var set_id = set_id = $('#update_set_picker_select').val(),
            text = selectedMenu.text(),
            item,
            i;
        for (i = 0; i < items.length; i++) {
          item = items[i];
          if (item.name == text) {
            executeMenuItem(item, {
              set_id: set_id
            });
            return;
          }
        }
        jslog('Unknown item selected: "' + text + '"');
      }

      var items = snd_ui16_developer_patch_menus.update_set();

      patchIcon('updateset', 'concourse-update-set-picker', items, callback);
    }
/**
     * Patch the Update Set picker icon with a context menu.
     *
     * @return {undefined}
     */
Patch the Update Set picker icon with a context menu.
@return {undefined}
Patch the Update Set picker icon with a context menu . @return { undefined }
function patchUpdateSetPickerIcon() {
      function callback(invokedOn, selectedMenu) {
        var set_id = set_id = $('#update_set_picker_select').val(),
            text = selectedMenu.text(),
            item,
            i;
        for (i = 0; i < items.length; i++) {
          item = items[i];
          if (item.name == text) {
            executeMenuItem(item, {
              set_id: set_id
            });
            return;
          }
        }
        jslog('Unknown item selected: "' + text + '"');
      }
      var items = snd_ui16_developer_patch_menus.update_set();
      patchIcon('updateset', 'concourse-update-set-picker', items, callback);
    }
function patchUpdateSetPickerIcon ( ) { function callback ( invokedOn , selectedMenu ) { var set_id = set_id = $ ( '#update_set_picker_select' ) . val ( ) , text = selectedMenu . text ( ) , item , i ; for ( i = 0 ; i < items . length ; i ++ ) { item = items [ i ] ; if ( item . name == text ) { executeMenuItem ( item , { set_id : set_id } ) ; return ; } } jslog ( 'Unknown item selected: "' + text + '"' ) ; } var items = snd_ui16_developer_patch_menus . update_set ( ) ; patchIcon ( 'updateset' , 'concourse-update-set-picker' , items , callback ) ; }
Patch the Update Set picker icon with a context menu.
Patch the Update Set picker icon with a context menu .