Elgg  Version 2.3
save.js
Go to the documentation of this file.
1 
5 define(function (require) {
6  var $ = require('jquery');
7  $(document).on('elgg_ui_toggle', function (e, data) {
8  var $toggle = $(e.target);
9  var $elements = data.$toggled_elements;
10 
11  if ($elements.is('.elgg-river-responses > .elgg-form-comment-save')) {
12  if ($toggle.hasClass('elgg-state-active')) {
13  $elements.find('.elgg-input-text').focus();
14  } else {
15  $toggle.blur();
16  }
17  }
18  });
19 });
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
elgg require
Throw an error if the required package isn't present.
Definition: elgglib.js:164
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
define(function(require){var $=require('jquery');$(document).on('elgg_ui_toggle', function(e, data){var $toggle=$(e.target);var $elements=data.$toggled_elements;if($elements.is('.elgg-river-responses >.elgg-form-comment-save')){if($toggle.hasClass('elgg-state-active')){$elements.find('.elgg-input-text').focus();}else{$toggle.blur();}}});})
Autofocuses first text input in a comment form when toggled forms/comment/save.