diff options
author | Aleksander Machniak <alec@alec.pl> | 2016-08-23 21:54:18 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2016-08-23 21:54:18 +0300 |
commit | c88a88fb0b191894a8fa897e881431b5f504449c (patch) | |
tree | a80028680453127da635cb8d39b70dcb4db3de50 /skins | |
parent | 820d614c79b8ec1433699237bd709a2c6fb0eada (diff) |
Rewrite smart upload button to work in IE (#5410)
Diffstat (limited to 'skins')
-rw-r--r-- | skins/larry/styles.css | 8 | ||||
-rw-r--r-- | skins/larry/templates/compose.html | 7 |
2 files changed, 6 insertions, 9 deletions
diff --git a/skins/larry/styles.css b/skins/larry/styles.css index bf966725e..a9a60dcce 100644 --- a/skins/larry/styles.css +++ b/skins/larry/styles.css @@ -181,6 +181,7 @@ input.mainaction { font-weight: bold; } +form.smart-upload, input.smart-upload { visibility: hidden; width: 1px; @@ -190,11 +191,6 @@ input.smart-upload { /** link buttons **/ -input.smart-upload + label { - cursor: pointer; -} - -input.smart-upload + label, a.button, .buttongroup { display: inline-block; @@ -218,8 +214,6 @@ a.button, white-space: nowrap; } -input.smart-upload:focus + label, -input.smart-upload + label:focus, a.button:focus, input.button:focus { border-color: #4fadd5; diff --git a/skins/larry/templates/compose.html b/skins/larry/templates/compose.html index 533a135a1..6d0666e5e 100644 --- a/skins/larry/templates/compose.html +++ b/skins/larry/templates/compose.html @@ -30,7 +30,7 @@ <a href="#languages" class="dropbuttontip" id="spellmenulink" onclick="UI.toggle_popup('spellmenu',event);return false" aria-haspopup="true" aria-expanded="false" tabindex="2">Select Spell Language</a> </span> <roundcube:endif /> - <roundcube:button name="addattachment" type="link" class="button attach" label="attach" title="addattachment" onclick="$('#uploadformbtn').click(); return false" aria-haspopup="true" aria-expanded="false" tabindex="2" /> + <roundcube:button name="addattachment" type="link" class="button attach" label="attach" title="addattachment" onclick="$('#uploadformInput').click()" aria-haspopup="true" aria-expanded="false" tabindex="2" /> <roundcube:button command="insert-sig" type="link" class="button insertsig disabled" classAct="button insertsig" label="signature" title="insertsignature" tabindex="2" /> <a href="#responses" class="button responses" label="responses" title="<roundcube:label name='insertresponse' />" id="responsesmenulink" unselectable="on" onmousedown="return false" onclick="UI.toggle_popup('responsesmenu',event);return false" tabindex="2" aria-haspopup="true" aria-expanded="false" aria-owns="textresponsesmenu"><roundcube:label name="responses" /></a> <roundcube:button command="compose-encrypted" type="link" class="button encrypt disabled" classAct="button encrypt" classSel="button encrypt selected" label="encrypt" title="encryptmessagemailvelope" tabindex="2" style="display:none" /> @@ -176,7 +176,8 @@ <div id="compose-attachments" class="rightcol" role="region" aria-labelledby="aria-label-composeattachments"> <h2 id="aria-label-composeattachments" class="voice"><roundcube:label name="attachments" /></h2> <div style="text-align:center; margin-bottom:10px"> - <roundcube:object name="composeAttachmentForm" id="uploadform" smart-button="yes" tabindex="1" /> + <roundcube:object name="composeAttachmentForm" mode="hint" /> + <a class="button" tabindex="1" href="#" onclick="$('#uploadformInput').click()"><roundcube:label name="addattachment" /></a> </div> <roundcube:object name="composeAttachmentList" id="attachment-list" class="attachmentslist" tabindex="1" /> <roundcube:object name="fileDropArea" id="compose-attachments" /> @@ -198,6 +199,8 @@ </div><!-- end mainscreen --> +<roundcube:object name="composeAttachmentForm" id="uploadform" mode="smart" /> + <div id="spellmenu" class="popupmenu" aria-hidden="true"></div> <div id="responsesmenu" class="popupmenu" aria-hidden="true"> |