Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 7... Línea 7...
7
        {{/element.hiddenlabel}}
7
        {{/element.hiddenlabel}}
8
    {{/label}}
8
    {{/label}}
9
    {{$element}}
9
    {{$element}}
10
        {{#label}}
10
        {{#label}}
11
            <fieldset class="w-100 m-0 p-0 border-0">
11
            <fieldset class="w-100 m-0 p-0 border-0">
12
                <legend class="sr-only">{{label}}</legend>
12
                <legend class="visually-hidden">{{{label}}}</legend>
13
                <div class="d-flex flex-wrap align-items-center">
13
                <div class="d-flex flex-wrap align-items-center">
14
                {{#element.elements}}
14
                {{#element.elements}}
15
                    {{{separator}}}
15
                    {{{separator}}}
16
                    {{{html}}}
16
                    {{{html}}}
17
                {{/element.elements}}
17
                {{/element.elements}}
Línea 32... Línea 32...
32
{{/ core_form/element-template }}
32
{{/ core_form/element-template }}
33
{{#js}}
33
{{#js}}
34
require(['jquery'], function($) {
34
require(['jquery'], function($) {
35
    $('#{{element.id}}_label').css('cursor', 'default');
35
    $('#{{element.id}}_label').css('cursor', 'default');
36
    $('#{{element.id}}_label').click(function() {
36
    $('#{{element.id}}_label').click(function() {
37
        $('#{{element.id}}')
37
        $('#{{element.id}}, [data-groupname="{{element.name}}"]')
38
            .find('button, a, input:not([type="hidden"]), select, textarea, [tabindex]')
38
            .find('button, a, input:not([type="hidden"]), select, textarea, [tabindex]')
39
            .filter(':not([disabled]):not([tabindex="0"]):not([tabindex="-1"])')
39
            .filter(':not([disabled]):not([tabindex="0"]):not([tabindex="-1"])')
40
            .first().focus();
40
            .first().focus();
41
    });
41
    });
42
});
42
});