javascript-console-share/src/main/amp/web/fme/components/jsconsole/javascript-console.js
/**
         * Dialog select destination button event handler
         *
         * @method onSelectDestinationClick
         * @param e
         *            {object} DomEvent
         * @param p_obj
         *            {object} Object passed back from addListener method
         */
Dialog select destination button event handler

@method onSelectDestinationClick
@param e
{object} DomEvent
@param p_obj
{object} Object passed back from addListener method
Dialog select destination button event handler @method onSelectDestinationClick @param e { object } DomEvent @param p_obj { object } Object passed back from addListener method
function ACJC_onSelectDestinationClick(e, p_obj)
      {
         if (!this.widgets.destinationDialog)
         {
            this.widgets.destinationDialog = new Alfresco.module.DoclibGlobalFolder(this.id + "-selectDestination");
            var allowedViewModes =
            [
               Alfresco.module.DoclibGlobalFolder.VIEW_MODE_REPOSITORY
            ];
            this.widgets.destinationDialog.setOptions(
            {
               allowedViewModes: allowedViewModes,
               siteId: this.options.siteId,
               containerId: this.options.containerId,
               title: this.msg("title.destinationDialog"),
               nodeRef: "alfresco://company/home"
            });
         }
         var pathNodeRef = this.widgets.nodeField.value;
         this.widgets.destinationDialog.setOptions(
         {
            pathNodeRef: pathNodeRef ? new Alfresco.util.NodeRef(pathNodeRef) : null
         });
         this.widgets.destinationDialog.showDialog();
      }
function ACJC_onSelectDestinationClick ( e , p_obj ) { if ( ! this . widgets . destinationDialog ) { this . widgets . destinationDialog = new Alfresco . module . DoclibGlobalFolder ( this . id + "-selectDestination" ) ; var allowedViewModes = [ Alfresco . module . DoclibGlobalFolder . VIEW_MODE_REPOSITORY ] ; this . widgets . destinationDialog . setOptions ( { allowedViewModes : allowedViewModes , siteId : this . options . siteId , containerId : this . options . containerId , title : this . msg ( "title.destinationDialog" ) , nodeRef : "alfresco://company/home" } ) ; } var pathNodeRef = this . widgets . nodeField . value ; this . widgets . destinationDialog . setOptions ( { pathNodeRef : pathNodeRef ? new Alfresco . util . NodeRef ( pathNodeRef ) : null } ) ; this . widgets . destinationDialog . showDialog ( ) ; }
Dialog select destination button event handler
Dialog select destination button event handler
// Set up select destination dialog
 // Alfresco.module.DoclibGlobalFolder.VIEW_MODE_SITE,
 // Alfresco.module.DoclibGlobalFolder.VIEW_MODE_USERHOME
 // Make sure correct path is expanded
 // Show dialog
