Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 33... Línea 33...
33
        ]
33
        ]
34
    }
34
    }
35
}}
35
}}
36
<label>
36
<label>
37
    {{#str}}show{{/str}}
37
    {{#str}}show{{/str}}
38
    <select name="perpage" class="custom-select ignoredirty" id="{{uniqid}}">
38
    <select name="perpage" class="form-select ignoredirty" id="{{uniqid}}">
39
        {{#options}}
39
        {{#options}}
40
            <option value="{{value}}" {{#selected}}selected{{/selected}}>{{{name}}}</option>
40
            <option value="{{value}}" {{#selected}}selected{{/selected}}>{{{name}}}</option>
41
        {{/options}}
41
        {{/options}}
42
    </select>
42
    </select>
43
</label>
43
</label>
44
{{#js}}
44
{{#js}}
45
    document.getElementById('{{uniqid}}').addEventListener('change', function(e) {
45
    document.getElementById('{{uniqid}}').addEventListener('change', function(e) {
46
        var url = new URL('{{baseurl}}');
46
        var url = new URL('{{{baseurl}}}');
47
        url.searchParams.set('perpage', e.target.value);
47
        url.searchParams.set('perpage', e.target.value);
Línea 48... Línea 48...
48
 
48
 
49
        window.location.href = url;
49
        window.location.href = url;
50
    });
50
    });