mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-04 04:04:36 +08:00
fix time zone selector
This commit is contained in:
parent
29f0f2afeb
commit
a6dd577b4e
2 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
*/
|
||||
function toggleFormVisibility(form, edit) {
|
||||
if (edit) {
|
||||
form.find('.selectpicker').selectpicker();
|
||||
form.find("[data-part='view']").hide();
|
||||
form.find("[data-part='edit']").show();
|
||||
form.find("[data-part='edit'] input:not([type='file']):not([type='submit']):first").focus();
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
<div class="form-group" style="max-width: 500px;">
|
||||
<%= f.select :time_zone, ActiveSupport::TimeZone.all.collect { |tz|
|
||||
[tz.formatted_offset + " " + tz.name, tz.name]
|
||||
}, {}, {class: 'form-control selectpicker', 'ata-role' => 'clear'} %>
|
||||
}, {}, {class: 'form-control selectpicker', 'data-role': 'clear'} %>
|
||||
<small><%= t("users.settings.account.preferences.edit.time_zone_sublabel") %></small>
|
||||
</div>
|
||||
<div>
|
||||
|
|
Loading…
Add table
Reference in a new issue