03-19-2014 01:35 AM
03-19-2014 08:55 AM
<Context useHttpOnly="false">
03-20-2014 01:45 AM
03-20-2014 01:48 AM
03-20-2014 02:49 AM
03-21-2014 02:56 AM
function getContentTypes()
{
   // TODO: Data webscript call to return list of available types
   var contentTypes = [
   {
      id: "kb:knowledgebase",
      value: "kb_knowledgebase"
     
   },
   {
      id: "cm:content",
      value: "cm_content"
   }];
   return contentTypes;
}
function getContentTypes()
{
   // TODO: Data webscript call to return list of available types
   var contentTypes = [
   {
      id: "kb:knowledgebase",
      value: "kb_knowledgebase"
     
   }];
   return contentTypes;
}
03-21-2014 03:20 AM
 onFileSelect: function FlashUpload_onFileSelect(event)
      {
         // Reset the page title if IE because the file select will have changed it…
         if (YAHOO.env.ua.ie)
         {
            document.title = this._iePageTitleBackup;
         }
         // Disable upload button until all files have been rendered and added
         this.widgets.uploadButton.set("disabled", true);
         // For each time the user select new files, all the previous selected
         // files also are included in the event.fileList. Make sure we only
         // add files to the table that haven's been added before.
         var newFiles = [],
            data,
            uniqueFileToken;
         for (var i in event.fileList)
         {
            data = YAHOO.widget.DataTable._cloneObject(event.fileList);
            uniqueFileToken = this._getUniqueFileToken(data);
            if (!this.addedFiles[uniqueFileToken])
            {
               if (data.size === 0 && !this.addedFiles[uniqueFileToken])
               {
                  Alfresco.util.PopupManager.displayMessage(
                  {
                     text: this.msg("message.zeroByteFileSelected", data.name)
                  });
               }
               else
               {
                  // Add file to file table
                  newFiles.push(data);
               }
               // Since the flash movie allows the user to select one file several
               // times we need to keep track of the selected files by our selves
               this.addedFiles[uniqueFileToken] = uniqueFileToken;
            }
         }
         // Add all files to table
         this.widgets.dataTable.addRows(newFiles, 0);
          
          //THIS IS WHERE MY CODE STARTS 
          if (this.showConfig.mode === this.MODE_SINGLE_UPDATE) {
              var fileupsel = Dom.get(this.id + "-left-div");
              Dom.setStyle(fileupsel, "display", "none !important");
          }
      }
03-21-2014 05:12 AM
03-21-2014 05:50 AM
  if (this.showConfig.mode === this.MODE_SINGLE_UPDATE)  {
              var fileupsel = Dom.getElementsByClassName("fileupload-contentType-select");
              Dom.addClass(fileupsel, "hidden");
  }
 onFileSelect: function FlashUpload_onFileSelect(event)
      {
         // Reset the page title if IE because the file select will have changed it…
         if (YAHOO.env.ua.ie)
         {
            document.title = this._iePageTitleBackup;
         }
         // Disable upload button until all files have been rendered and added
         this.widgets.uploadButton.set("disabled", true);
         // For each time the user select new files, all the previous selected
         // files also are included in the event.fileList. Make sure we only
         // add files to the table that haven's been added before.
         var newFiles = [],
            data,
            uniqueFileToken;
         for (var i in event.fileList)
         {
            data = YAHOO.widget.DataTable._cloneObject(event.fileList);
            uniqueFileToken = this._getUniqueFileToken(data);
            if (!this.addedFiles[uniqueFileToken])
            {
               if (data.size === 0 && !this.addedFiles[uniqueFileToken])
               {
                  Alfresco.util.PopupManager.displayMessage(
                  {
                     text: this.msg("message.zeroByteFileSelected", data.name)
                  });
               }
               else
               {
                  // Add file to file table
                  newFiles.push(data);
               }
               // Since the flash movie allows the user to select one file several
               // times we need to keep track of the selected files by our selves
               this.addedFiles[uniqueFileToken] = uniqueFileToken;
            }
         }
         // Add all files to table
         this.widgets.dataTable.addRows(newFiles, 0);
            if (this.showConfig.mode === this.MODE_SINGLE_UPDATE)  {
              var fileupsel = Dom.getElementsByClassName("fileupload-contentType-select");              
              Dom.addClass(fileupsel, "hidden");
            }
      }
 
					
				
				
			
		
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.