Elgg  Version 1.11
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) {
this.guid = guid;
this.$item = $('#elgg-object-' + guid);
}
$item
Definition: item.php:12
Parameters
{Number}guid

Definition at line 8 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).data('Comment', dc);
}
dc.toggleEdit();
return false;
});
}
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: LICENSE.txt:43
elgg
Definition: install.js:23
GNU GENERAL PUBLIC LICENSE June Free Software Franklin Fifth MA USA Everyone is permitted to copy and distribute verbatim copies of this license document
Definition: LICENSE.txt:4

Initialize comment inline editing.

Returns
void

Definition at line 117 of file comments.js.

elgg comments Comment prototype

Definition at line 13 of file comments.js.