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:
Leo Franchi 2013-11-18 16:43:24 -05:00
parent 32702ef7ab
commit 9ca8288918
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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>