Class Index | File Index

Classes


Class Alfresco.module.EditSite

EditSite module

A dialog for creating sites
Defined in: edit-site.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
EditSite constructor.
Field Summary
Field Attributes Field Name and Description
 
The default config for the gui state for edit site.
 
True if the delete prompt is shown
 
The merged result of the defaultShowConfig and the config passed in
 
Object container for storing YUI widget instances.
Method Summary
Method Attributes Method Name and Description
 
onCancelButtonClick(type, args)
Called when user clicks on the cancel button.
 
Fired by YUILoaderHelper when required component script files have
 
Called when a site failed to be created.
 
Called when a site has been succesfully created on the server.
 
onTemplateLoaded(response)
Called when the EditSite html template has been returned from the server.
 
onVisibilityChange(type, args)
Called when user clicks on the isPublic checkbox.
 
Set messages for this module.
 
show(config)
Shows the CreteSite dialog to the user.
Constructor Detail
Alfresco.module.EditSite(htmlId)
EditSite constructor.
Parameters:
{string} htmlId
A unique id for this component
Returns:
{Alfresco.EditSite} The new DocumentList instance
Field Detail
{object} defaultShowConfig
The default config for the gui state for edit site.

editPanelActive
True if the delete prompt is shown

{object} showConfig
The merged result of the defaultShowConfig and the config passed in
to the show method.

{object} widgets
Object container for storing YUI widget instances.
Method Detail
onCancelButtonClick(type, args)
Called when user clicks on the cancel button.
Closes the EditSite panel.
Parameters:
type
args

onComponentsLoaded()
Fired by YUILoaderHelper when required component script files have
been loaded into the browser.

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

onEditSiteSuccess(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 EditSite 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, args)
Called when user clicks on the isPublic checkbox.
Parameters:
type
args

{Alfresco.module.EditSite} setMessages(obj)
Set messages for this module.
Parameters:
{object} obj
Object literal specifying a set of messages
Returns:
{Alfresco.module.EditSite} returns 'this' for method chaining

show(config)
Shows the CreteSite dialog to the user.
Parameters:
config

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