Changeset 5667 in subversion
- Timestamp:
- Dec 30, 2011 11:02:24 AM (18 months ago)
- Location:
- trunk/roundcubemail/skins/larry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/skins/larry/mail.css
r5664 r5667 1111 1111 } 1112 1112 1113 1114 1113 #uploadform a.iconlink { 1114 margin-left: 1em; 1115 text-indent: -1000px; 1116 } 1117 1118 #uploadform form div { 1119 margin: 4px 0; 1120 } 1121 -
trunk/roundcubemail/skins/larry/ui.js
r5655 r5667 533 533 return; 534 534 } 535 536 // add icons to clone file input field 537 if (rcmail.env.action = 'compose' && !$dialog.data('extended')) { 538 $('<a>') 539 .addClass('iconlink add') 540 .attr('href', '#add') 541 .html('Add') 542 .appendTo($('input[type="file"]', $dialog).parent()) 543 .click(add_uploadfile); 544 $dialog.data('extended', true); 545 } 535 546 536 547 $dialog.dialog({ … … 544 555 545 556 $dialog.dialog('destroy').hide(); 557 $('div.addline', $dialog).remove(); 546 558 }, 547 559 width: 480 … … 549 561 550 562 if (!document.all) 551 $('input[type=file]', $dialog).click(); 552 } 563 $('input[type=file]', $dialog).first().click(); 564 } 565 566 function add_uploadfile(e) 567 { 568 var div = $(this).parent(); 569 var clone = div.clone().addClass('addline').insertAfter(div); 570 clone.children('.iconlink').click(add_uploadfile); 571 clone.children('input').val(''); 572 573 if (!document.all) 574 $('input[type=file]', clone).click(); 575 } 576 553 577 554 578 /**
Note: See TracChangeset
for help on using the changeset viewer.
