Skip to content

Commit

Permalink
officejs_support_request_ui: Select the first resource when there's o…
Browse files Browse the repository at this point in the history
…nly one
  • Loading branch information
gabrielnexedi authored and perrinjerome committed Sep 8, 2023
1 parent 68756dd commit 948998a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
for (j = 0; j < sp_list.length; j += 1) {
sp_select.options[j] = new Option(sp_list[j][0], sp_list[j][1]);
}
if (sp_select.options.length === 2) {
sp_select.selectedIndex = 1;
}
});
})
.onEvent('change', function (evt) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
</tuple>
<state>
<tuple>
<float>1607511772.31</float>
<float>1607511772.32</float>
<string>GMT+1</string>
</tuple>
</state>
Expand Down

0 comments on commit 948998a

Please sign in to comment.