mirror of https://github.com/zulip/zulip.git
Do not use display: none on file inputs, as some browsers will not let you trigger clicks on them
(imported from commit f05b18f7ad3f4235d33a1142db7e662f97eff308)
This commit is contained in:
parent
32702ef7ab
commit
9ca8288918
|
@ -43,7 +43,7 @@
|
|||
</div>
|
||||
<div class="control-group">
|
||||
<label for="bot_avatar_file_input" class="control-label">Avatar</label>
|
||||
<input type="file" name="bot_avatar_file_input" class="notdisplayed edit_bot_avatar_file_input" value="Upload avatar" />
|
||||
<input type="file" name="bot_avatar_file_input" class="notvisible edit_bot_avatar_file_input" value="Upload avatar" />
|
||||
<div class="controls">
|
||||
<div class="edit_bot_avatar_file"></div>
|
||||
<button type="button" class="btn edit_bot_avatar_upload_button">Choose avatar</button>
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<div id="user_avatar_file"></div>
|
||||
<input type="file" name="user_avatar_file_input" class="notdisplayed" id="user_avatar_file_input" value="Upload avatar" />
|
||||
<input type="file" name="user_avatar_file_input" class="notvisible" id="user_avatar_file_input" value="Upload avatar" />
|
||||
<button class="btn" id="user_avatar_upload_button">Customize avatar</button>
|
||||
<p>
|
||||
<img id="user-settings-avatar" src="{{ avatar_url }}" />
|
||||
|
@ -200,7 +200,7 @@
|
|||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<div id="bot_avatar_file"></div>
|
||||
<input type="file" name="bot_avatar_file_input" class="notdisplayed" id="bot_avatar_file_input" value="Upload avatar" />
|
||||
<input type="file" name="bot_avatar_file_input" class="notvisible" id="bot_avatar_file_input" value="Upload avatar" />
|
||||
<button class="btn" id="bot_avatar_clear_button">Clear avatar</button>
|
||||
<button class="btn" id="bot_avatar_upload_button">Customize avatar</button> (Optional)
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue