diff options
author | Aleksander Machniak <alec@alec.pl> | 2016-08-20 20:38:48 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2016-08-20 20:38:48 +0300 |
commit | 43f3c5fb2af1e04ef9f5d95f99b9a2b995bffaca (patch) | |
tree | 889afeab02a4da84a8a30b96b0d2e4d7060605e4 /skins | |
parent | c65bb121ebbef6be16486f43f00b71e7d1207697 (diff) |
Implement "one click" attachment upload (#5024)
Diffstat (limited to 'skins')
-rw-r--r-- | skins/larry/mail.css | 5 | ||||
-rw-r--r-- | skins/larry/styles.css | 14 | ||||
-rw-r--r-- | skins/larry/templates/compose.html | 15 |
3 files changed, 22 insertions, 12 deletions
diff --git a/skins/larry/mail.css b/skins/larry/mail.css index 823a2a8f8..23c852a7a 100644 --- a/skins/larry/mail.css +++ b/skins/larry/mail.css @@ -1364,6 +1364,11 @@ div.message-partheaders .headers-table td.header { color: #888; } +#compose-attachments .hint { + color: #666; + margin: 0 0 8px; +} + #composeview-bottom .formbuttons.floating { position: absolute; width: auto; diff --git a/skins/larry/styles.css b/skins/larry/styles.css index a5bd8fad9..8473f6352 100644 --- a/skins/larry/styles.css +++ b/skins/larry/styles.css @@ -181,8 +181,20 @@ input.mainaction { font-weight: bold; } +input.smart-upload { + visibility: hidden; + width: 1px; + height: 1px; + opacity: 0; +} + /** link buttons **/ +input.smart-upload + label { + cursor: pointer; +} + +input.smart-upload + label, a.button, .buttongroup { display: inline-block; @@ -206,6 +218,8 @@ 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 c00ca082a..533a135a1 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="UI.show_uploadform(event);return false" aria-haspopup="true" aria-expanded="false"tabindex="2" /> + <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 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" /> @@ -175,8 +175,8 @@ </div> <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:20px"> - <roundcube:button name="addattachment" type="input" class="button" classSel="button pressed" label="addattachment" onclick="UI.show_uploadform(event);return false" tabindex="1" /> + <div style="text-align:center; margin-bottom:10px"> + <roundcube:object name="composeAttachmentForm" id="uploadform" smart-button="yes" tabindex="1" /> </div> <roundcube:object name="composeAttachmentList" id="attachment-list" class="attachmentslist" tabindex="1" /> <roundcube:object name="fileDropArea" id="compose-attachments" /> @@ -198,15 +198,6 @@ </div><!-- end mainscreen --> -<div id="upload-dialog" class="propform popupdialog" title="<roundcube:label name='addattachment' />" aria-hidden="true"> - <h2 id="aria-label-uploaddialog" class="voice"><roundcube:label name="arialabelattachmentuploadform" /></h2> - <roundcube:object name="composeAttachmentForm" id="uploadform" buttons="no" /> - <div class="formbuttons"> - <roundcube:button command="send-attachment" type="input" class="button mainaction" label="upload" /> - <roundcube:button name="close" type="input" class="button" label="cancel" onclick="UI.show_uploadform()" /> - </div> -</div> - <div id="spellmenu" class="popupmenu" aria-hidden="true"></div> <div id="responsesmenu" class="popupmenu" aria-hidden="true"> |