19 <
ul class=
"elgg-tabs">
20 <
li class=
"elgg-state-selected">
21 <
a href=
"#" class=
"collectionmembers<?php echo $friendspicker; ?>">
26 <
a href=
"#" class=
"editmembers<?php echo $friendspicker; ?>">
33 require([
'jquery'],
function($) {
34 $(
'a.collectionmembers<?php echo $friendspicker; ?>').
click(
function () {
36 $(
'#friends-picker_placeholder<?php echo $friendspicker; ?>').load(
'<?php echo elgg_get_site_url(); ?>collections/pickercallback?username=<?php echo elgg_get_logged_in_user_entity()->username; ?>&type=list&collection=<?php echo $collectionid; ?>&friendspicker=<?php echo $friendspicker; ?>');
39 $(
this).parent().parent().find(
"li.elgg-state-selected").removeClass(
"elgg-state-selected");
41 $(
this).parent().addClass(
"elgg-state-selected");
46 $(
'a.editmembers<?php echo $friendspicker; ?>').
click(
function () {
48 $(
'#friends-picker_placeholder<?php echo $friendspicker; ?>').load(
'<?php echo elgg_get_site_url(); ?>collections/pickercallback?username=<?php echo elgg_get_logged_in_user_entity()->username; ?>&type=picker&collection=<?php echo $collectionid; ?>&friendspicker=<?php echo $friendspicker; ?>');
51 $(
this).parent().parent().find(
"li.elgg-state-selected").removeClass(
"elgg-state-selected");
53 $(
this).parent().addClass(
"elgg-state-selected");
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg echo
Translates a string.
elgg require
Throw an error if the required package isn't present.
function elgg combo checkbox click(function(){if($(this).is(':checked')){$(this).prev().attr('disabled', true);$(this).prev().val('');}else{$(this).prev().attr('disabled', false);}})