mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 14:45:56 +08:00
Merge pull request #1263 from mlorb/ml-sci-2652
fix time zone selector [SCI-2652]
This commit is contained in:
commit
30091da94f
|
@ -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…
Reference in a new issue