Elgg  Version 2.3
Functions
save.js File Reference

Go to the source code of this file.

Functions

 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. More...
 

Function Documentation

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.