* Code for bug #45171.

This commit is contained in:
wangyidong
2024-01-25 11:07:29 +08:00
parent 1ea97b61ec
commit 29b8ed73f5
2 changed files with 22 additions and 0 deletions
+20
View File
@@ -77,3 +77,23 @@ window.setLane = function(e)
$('#myPicker').picker(JSON.parse(lane));
});
};
let formSettingLabelClicked = false;
$(document).on('click', 'form.form-setting-form .row label.state', function()
{
console.log(formSettingLabelClicked);
if(formSettingLabelClicked) return;
formSettingLabelClicked = true;
let text = $(this).find('.text-clip').text();
$('form.form-setting-form .row label.state').each(function()
{
if(text == langSource || text == langSourceNote)
{
$this = $(this);
if(text == langSource && langSourceNote == $this.find('.text-clip').text()) $this[0].click();
if(text == langSourceNote && langSource == $this.find('.text-clip').text()) $this[0].click();
}
})
formSettingLabelClicked = false;
});
+2
View File
@@ -108,6 +108,8 @@ $params = $app->getParams();
array_shift($params);
jsVar('createParams', http_build_query($params));
jsVar('storyType', $type);
jsVar('langSource', $lang->story->source);
jsVar('langSourceNote', $lang->story->sourceNote);
jsVar('feedbackSource', $config->story->feedbackSource);
formGridPanel