* [bug#56872] Fix bug for update os.

This commit is contained in:
liyang
2024-11-13 08:32:15 +08:00
committed by 曹延义
parent 34b724dc99
commit e5c6bdc8f6
3 changed files with 27 additions and 8 deletions
+4 -2
View File
@@ -18,6 +18,7 @@ formPanel
(
set::id('hostEditForm'),
set::title($lang->host->edit),
on::init()->do('$(function() {setTimeout(osChange, 50); });'),
formRow
(
setID('groupRow'),
@@ -56,7 +57,7 @@ formPanel
set::control('picker'),
set::name('osName'),
set::items($lang->host->osNameList),
set::value($osName ? $osName : $host->osName),
set::value(zget($host, 'osName', '')),
on::change('osChange')
)
),
@@ -71,11 +72,12 @@ formPanel
),
formGroup
(
setID('osVersion'),
set::width('1/3'),
set::label($lang->host->osVersion),
set::control('picker'),
set::name('osVersion'),
set::items($lang->host->{"{$osName}List"}),
set::items(array()),
set::value($host->osVersion)
)
),