mirror of
https://github.com/moodle/moodle.git
synced 2025-07-10 00:46:32 +02:00
fixed function of advanced button in formslib - you had to click it twice initially
This commit is contained in:
@ -251,7 +251,7 @@ function elementShowAdvanced(elements, show) {
|
||||
function showAdvancedOnClick(button, hidetext, showtext){
|
||||
var toSet=findChildNodes(button.form, null, 'advanced');
|
||||
var buttontext = '';
|
||||
if (button.form.elements['mform_showadvanced_last'].value == '0') {
|
||||
if (button.form.elements['mform_showadvanced_last'].value == '0' || button.form.elements['mform_showadvanced_last'].value == '' ) {
|
||||
elementShowAdvanced(toSet, true);
|
||||
buttontext = hidetext;
|
||||
button.form.elements['mform_showadvanced_last'].value = '1';
|
||||
|
Reference in New Issue
Block a user