Class Index | File Index

Classes


Class Alfresco.module.DeleteSite

Extends Alfresco.component.Base
DeleteSite module.

Displays a dialog with cofirmation to delete a site.
Defined in: delete-site.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
DeleteSite constructor.
Field Summary
Field Attributes Field Name and Description
 
Makes sure the dialog isn't displayed twice at the same time
 
Will become true when the template (that sets the i18n messages)
Fields borrowed from class Alfresco.component.Base:
modules, options, services, widgets
Method Summary
Method Attributes Method Name and Description
 
Called when the DeleteSite messages has been returned from the server.
 
show(config)
Shows the dialog
Methods borrowed from class Alfresco.component.Base:
attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.module.DeleteSite(htmlId)
DeleteSite constructor.

DeleteSite is considered a singleton so constructor should be treated as private,
please use Alfresco.module.getDeleteSiteInstance() instead.
Parameters:
{string} htmlId
The HTML id of the parent element
Returns:
{Alfresco.module.DeleteSite} The new DeleteSite instance
Field Detail
deletePromptActive
Makes sure the dialog isn't displayed twice at the same time

localized
Will become true when the template (that sets the i18n messages)
to this module has been loaded.
Method Detail
onMessagesLoaded(config)
Called when the DeleteSite messages has been returned from the server.
Shows the dialog.
Parameters:
{object} config
The config for the dialog

show(config)
Shows the dialog
in different ways depending on the config parameter.
Parameters:
{object} config
describes how the upload dialog should be displayed
The config object is in the form of:
{
site:
{
shortName: {string}, // shortName of site to delete
title: {string} // Name of site to delete
}
}

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