Revision e92b111d
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
js/common.js | ||
---|---|---|
192 | 192 |
$('input').focus(function(){ |
193 | 193 |
if (focussable(this)) window.focused_element = this; |
194 | 194 |
}); |
195 |
|
|
196 |
var initial_focus = $(".initial_focus").filter(':visible')[0]; |
|
197 |
if (initial_focus) |
|
198 |
$(initial_focus).focus(); |
|
199 |
|
|
195 | 200 |
// legacy. sone forms install these |
196 | 201 |
if (typeof fokus == 'function') { fokus(); return; } |
197 | 202 |
if (focus_by_name('cursor_fokus')) return; |
Auch abrufbar als: Unified diff
Optionales Fokus-Setzen via CSS-Klasse "initial_focus"