Class Index | File Index

Classes


Class Alfresco.BlogPostEdit

Extends Alfresco.component.Base
BlogPostEdit component.

Component provides blog post creation/edit functionality.
Defined in: postedit.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
BlogPostEdit constructor.
Field Summary
Field Attributes Field Name and Description
 
Stores the data of the currently edited blog post
 
Object container for initialization options
 
If true, an external publish/update will be executed after the post has been
Fields borrowed from class Alfresco.component.Base:
modules, services, widgets
Method Summary
Method Attributes Method Name and Description
 
Cancel button click handler
 
Publish button click handler
 
Publish external button click handler
 
Reenables the inputs which got disabled as part of a comment submit
 
Form submit success handler
 
Publishes the blog post to an external blog.
 
Fired by YUI when parent element is available for scripting.
 
Updates the external published blog post.
 
Called when a key was pressed in the rich text editor.
Methods borrowed from class Alfresco.component.Base:
attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.BlogPostEdit(htmlId)
BlogPostEdit constructor.
Parameters:
{String} htmlId
The HTML id of the parent element
Returns:
{Alfresco.BlogPostEdit} The new Post instance
Field Detail
blogPostData
Stores the data of the currently edited blog post

{object} options
Object container for initialization options

performExternalPublish
If true, an external publish/update will be executed after the post has been
saved/updated.
Method Detail
onFormCancelButtonClick(type, args)
Cancel button click handler
Parameters:
type
args

onFormPublishButtonClick(type, args)
Publish button click handler
Parameters:
type
args

onFormPublishExternalButtonClick(type, args)
Publish external button click handler
Parameters:
type
args

onFormSubmitFailure()
Reenables the inputs which got disabled as part of a comment submit

onFormSubmitSuccess(response)
Form submit success handler
Parameters:
response

onPublishExternal(postId)
Publishes the blog post to an external blog.
Parameters:
postId

onReady()
Fired by YUI when parent element is available for scripting.
Component initialisation, including instantiation of YUI widgets and event listener binding.

onUpdateExternal(postId)
Updates the external published blog post.
Parameters:
postId

validateAfterEditorChange()
Called when a key was pressed in the rich text editor.
Will trigger form validation after the last key stroke after a seconds pause.

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