Class Index | File Index

Classes


Class Alfresco.module.CreateSite

Extends Alfresco.component.Base
CreateSite module

A dialog for creating sites
Defined in: create-site.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
CreateSite constructor.
Field Summary
Field Attributes Field Name and Description
 
Short name field
Fields borrowed from class Alfresco.component.Base:
modules, options, services, widgets
Method Summary
Method Attributes Method Name and Description
 
onCancelButtonClick(type, args)
Called when user clicks on the cancel button.
 
Called when a site failed to be created.
 
Called when a site has been succesfully created on the server.
 
onTemplateLoaded(response)
Called when the CreateSite html template has been returned from the server.
 
Called when user clicks on the isPublic checkbox.
 
safeURL(text)
Converts a user-entered string into a "readable" safe URL by stripping characters
 
show()
Shows the CreteSite dialog to the user.
Methods borrowed from class Alfresco.component.Base:
attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.module.CreateSite(htmlId)
CreateSite constructor.
Parameters:
{string} htmlId
A unique id for this component
Returns:
{Alfresco.CreateSite} The new DocumentList instance
Field Detail
shortNameEdited
Short name field
Method Detail
onCancelButtonClick(type, args)
Called when user clicks on the cancel button.
Closes the CreateSite panel.
Parameters:
type
args

onCreateSiteFailure(response)
Called when a site failed to be created.
Parameters:
response

onCreateSiteSuccess(response)
Called when a site has been succesfully created on the server.
Redirects the user to the new site.
Parameters:
response

onTemplateLoaded(response)
Called when the CreateSite html template has been returned from the server.
Creates the YUI gui objects such as buttons and a panel and shows it.
Parameters:
{object} response
a Alfresco.util.Ajax.request response object

onVisibilityChange(type, el)
Called when user clicks on the isPublic checkbox.
Parameters:
type
el

{string} safeURL(text)
Converts a user-entered string into a "readable" safe URL by stripping characters
Parameters:
{string} text
The string to convert
Returns:
{string} Safe and readable URL

show()
Shows the CreteSite dialog to the user.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Feb 16 2012 12:24:26 GMT-0000 (GMT)