Elgg  Version 2.2
Functions | Variables
comments.js File Reference

Go to the source code of this file.

Functions

elgg provide ('elgg.comments')
 
elgg register_hook_handler ('init', 'system', elgg.comments.init)
 

Variables

elgg comments Comment
 
elgg comments Comment prototype
 
elgg comments init
 Initialize comment inline editing. More...
 

Function Documentation

elgg provide ( 'elgg.comments )
elgg register_hook_handler ( 'init ,
'system ,
elgg.comments.  init 
)

Variable Documentation

elgg comments Comment
Initial value:
= function (guid, item) {
this.guid = guid;
this.$item = item;
}
$item
Definition: item.php:12
elgg item
Definition: admin.css.php:441
Parameters
{Number}guid
{jQuery}item

Definition at line 9 of file comments.js.

elgg comments init
Initial value:
= function() {
$(document).on('click', '.elgg-item-object-comment .elgg-menu-item-edit > a', function () {
var dc = $(this).data('Comment'),
guid;
if (!dc) {
guid = this.href.split('/').pop();
dc = new elgg.comments.Comment(guid, $(this).closest('.elgg-item-object-comment'));
$(this).data('Comment', dc);
}
dc.toggleEdit();
return false;
});
}
elgg
Definition: install.js:23
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed on
Definition: GPL-LICENSE.txt:43
GNU GENERAL PUBLIC LICENSE June Free Software Inc Franklin Fifth MA USA Everyone is permitted to copy and distribute verbatim copies of this license document
Definition: GPL-LICENSE.txt:4

Initialize comment inline editing.

Returns
void

Definition at line 118 of file comments.js.

elgg comments Comment prototype

Definition at line 14 of file comments.js.