function patchAppPickerIcon() {

      function getAppId() {
        var app_id = $('#application_picker_select').val();
        return app_id.split(':').pop(); // remove 'string:' prefix
      }

      function callback(invokedOn, selectedMenu) {
        var app_id = getAppId(),
            text = selectedMenu.text(),
            item,
            i;

        for (i = 0; i < items.length; i++) {
          item = items[i];
          if (item.name == text) {
            executeMenuItem(item, {
              app_id: app_id
            });
            return;
          }
        }
        jslog('Unknown item selected: "' + text + '"');
      }

      var items = snd_ui16_developer_patch_menus.application();

      patchIcon('application', 'concourse-application-picker', items, callback);
    }
/**
     * Patch the Application picker icon with a context menu.
     *
     * @return {undefined}
     */
Patch the Application picker icon with a context menu.
@return {undefined}
Patch the Application picker icon with a context menu . @return { undefined }
function patchAppPickerIcon() {
      function getAppId() {
        var app_id = $('#application_picker_select').val();
        return app_id.split(':').pop(); 
      }
      function callback(invokedOn, selectedMenu) {
        var app_id = getAppId(),
            text = selectedMenu.text(),
            item,
            i;
        for (i = 0; i < items.length; i++) {
          item = items[i];
          if (item.name == text) {
            executeMenuItem(item, {
              app_id: app_id
            });
            return;
          }
        }
        jslog('Unknown item selected: "' + text + '"');
      }
      var items = snd_ui16_developer_patch_menus.application();
      patchIcon('application', 'concourse-application-picker', items, callback);
    }
function patchAppPickerIcon ( ) { function getAppId ( ) { var app_id = $ ( '#application_picker_select' ) . val ( ) ; return app_id . split ( ':' ) . pop ( ) ; } function callback ( invokedOn , selectedMenu ) { var app_id = getAppId ( ) , text = selectedMenu . text ( ) , item , i ; for ( i = 0 ; i < items . length ; i ++ ) { item = items [ i ] ; if ( item . name == text ) { executeMenuItem ( item , { app_id : app_id } ) ; return ; } } jslog ( 'Unknown item selected: "' + text + '"' ) ; } var items = snd_ui16_developer_patch_menus . application ( ) ; patchIcon ( 'application' , 'concourse-application-picker' , items , callback ) ; }
Patch the Application picker icon with a context menu.
Patch the Application picker icon with a context menu .
// remove 'string:' prefix