10 'class' =>
'elgg-button-cancel mlm',
14 if (0) { ?><script><?php }
17 elgg.provide(
'elgg.walled_garden');
19 elgg.walled_garden.init =
function () {
21 $(
'.forgot_link').
click(
elgg.walled_garden.load(
'lost_password'));
22 $(
'.registration_link').
click(
elgg.walled_garden.load(
'register'));
24 $(
'input.elgg-button-cancel').live(
'click',
function(event) {
25 var $wgs = $(
'.elgg-walledgarden-single');
26 if ($wgs.is(
':visible')) {
27 $(
'.elgg-walledgarden-double').fadeToggle();
31 event.preventDefault();
41 elgg.walled_garden.load =
function(
view) {
42 return function(event) {
43 var
id =
'#elgg-walledgarden-' +
view;
44 id =
id.replace(
'_',
'-');
47 'success' :
function(data) {
48 var $wg = $(
'.elgg-body-walledgarden');
52 if (
view ==
'register' && $wg.hasClass(
'hidden')) {
54 $(
'#elgg-walledgarden-login').toggle(
false);
56 $wg.removeClass(
'hidden');
58 $(
'#elgg-walledgarden-login').fadeToggle();
63 event.preventDefault();
67 elgg.register_hook_handler(
'init',
'system',
elgg.walled_garden.init);
$CONFIG view
The current view type.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg echo
Translates a string.
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
function elgg combo checkbox click(function(){if($(this).is(':checked')){$(this).prev().attr('disabled', true);$(this).prev().val('');}else{$(this).prev().attr('disabled', false);}})
$cancel_button
Walled garden JavaScript.