Add UI elements for message import to classic skin

pull/58/merge
Thomas Bruederli 12 years ago
parent 5c74e86eee
commit e11e7e786b

@ -967,6 +967,7 @@ function rcube_init_mail_ui()
rcmail.addEventListener('responseaftergetunread', rcube_render_mailboxlist); rcmail.addEventListener('responseaftergetunread', rcube_render_mailboxlist);
rcmail.addEventListener('responseaftercheck-recent', rcube_render_mailboxlist); rcmail.addEventListener('responseaftercheck-recent', rcube_render_mailboxlist);
rcmail.addEventListener('aftercollapse-folder', rcube_render_mailboxlist); rcmail.addEventListener('aftercollapse-folder', rcube_render_mailboxlist);
rcmail.addEventListener('afterimport-messages', function(){ rcmail_ui.show_popup('uploadform', false); });
new rcmail_scroller('#mailboxlist-content', '#mailboxlist-title', '#mailboxlist-footer'); new rcmail_scroller('#mailboxlist-content', '#mailboxlist-title', '#mailboxlist-footer');
} }

@ -1600,16 +1600,19 @@ input.from_address
vertical-align: middle; vertical-align: middle;
} }
#upload-form,
#attachment-form #attachment-form
{ {
padding: 6px; padding: 6px;
} }
#upload-form div,
#attachment-form div #attachment-form div
{ {
padding: 2px; padding: 2px;
} }
#upload-form div.buttons,
#attachment-form div.buttons #attachment-form div.buttons
{ {
margin-top: 4px; margin-top: 4px;

@ -140,7 +140,8 @@
<div id="mailboxoptionsmenu" class="popupmenu"> <div id="mailboxoptionsmenu" class="popupmenu">
<ul> <ul>
<li><roundcube:button command="expunge" type="link" label="compact" classAct="active" /></li> <li><roundcube:button command="expunge" type="link" label="compact" classAct="active" /></li>
<li class="separator_below"><roundcube:button command="purge" type="link" label="empty" classAct="active" /></li> <li><roundcube:button command="purge" type="link" label="empty" classAct="active" /></li>
<li class="separator_below"><roundcube:button name="messageimport" type="link" class="active" label="importmessages" id="uploadformlink" onclick="rcmail_ui.show_popup('uploadform', true); return false" /></li>
<li><roundcube:button command="folders" task="settings" type="link" label="managefolders" classAct="active" /></li> <li><roundcube:button command="folders" task="settings" type="link" label="managefolders" classAct="active" /></li>
<roundcube:container name="mailboxoptions" id="mailboxoptionsmenu" /> <roundcube:container name="mailboxoptions" id="mailboxoptionsmenu" />
</ul> </ul>
@ -204,5 +205,7 @@
</div> </div>
</div> </div>
<roundcube:object name="messageimportform" id="upload-form" attachmentFieldSize="40" class="popupmenu" />
</body> </body>
</html> </html>

Loading…
Cancel
Save