Changeset 1852:c0c05a0c54a3
- Timestamp:
- 09/14/13 13:31:08 (12 years ago)
- Branch:
- default
- Location:
- admin
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_media.js
r1782 r1852 25 25 } 26 26 27 $('.button. add').click(function(e) {27 $('.button.choose_files').click(function(e) { 28 28 // Use the native click() of the file input. 29 29 $('#upfile').click(); -
admin/media.php
r1849 r1852 372 372 echo 373 373 '<p><label for="upfile">'.'<span class="add-label one-file">'.__('Choose file').'</span>'.'</label>'. 374 '<button class="button add">'.__('Choose files').'</button>'.374 '<button class="button choose_files">'.__('Choose files').'</button>'. 375 375 '<input type="file" id="upfile" name="upfile[]"'.($user_ui_enhanceduploader?' multiple="mutiple"':'').' data-url="'.html::escapeURL($page_url).'" /></p>'; 376 376 -
admin/style/default.css
r1851 r1852 563 563 border-radius: 3px; 564 564 cursor: pointer; 565 font: 100% "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif; 565 566 } 566 567 button, … … 571 572 } 572 573 /* validation */ 573 input[type=submit], a.button.submit {574 input[type=submit], a.button.submit, input.button.start { 574 575 color: #fff; 575 576 border: 1px solid #2C8FD1; … … 581 582 } 582 583 input[type=submit]:hover, input[type=submit]:focus, 584 input.button.start:hover, input.button.start:focus, 583 585 a.button.submit:hover, a.button.submit:focus { 584 586 background-image:-moz-linear-gradient(top,#188BC0 0%,#25A6E1 100%); … … 1620 1622 min-height: 120px 1621 1623 } 1624 .media-folder { 1625 background: transparent url(bg_menu.png) repeat-y; 1626 border-left-color: #f90; 1627 } 1628 .media-folder-up { 1629 border: none; 1630 } 1622 1631 .media-item ul { 1623 1632 display: block; … … 1626 1635 padding: 0; 1627 1636 } 1637 .media-folder ul, .media-folder img { 1638 padding-left: 2em; 1639 } 1628 1640 a.media-icon { 1629 1641 display: block; … … 1643 1655 display: block; 1644 1656 position: absolute; 1645 top: 5px;1646 right: 5px;1657 bottom: 4px; 1658 right: 8px; 1647 1659 height: 16px; 1648 1660 } … … 1660 1672 padding: 5px 0 5px 20px; 1661 1673 } 1662 1674 /* upload multiple */ 1663 1675 .enhanced_uploader .add, .enhanced_uploader .cancel, 1664 1676 .enhanced_uploader .clean, .enhanced_uploader .start { 1665 1677 margin-right: .4em; 1666 }1678 } 1667 1679 .enhanced_uploader #upfile { 1668 1680 visibility: hidden; … … 1673 1685 filter: alpha(opacity=0); 1674 1686 cursor: pointer; 1675 }1687 } 1676 1688 .button.clean, .button.cancel, .button.add { 1677 1689 display: none; 1678 }1690 } 1679 1691 .enhanced_uploader .button.add { 1680 1692 display: inline-block; 1681 }1693 } 1682 1694 .enhanced_uploader .max-size { 1683 1695 display: block; 1684 }1696 } 1685 1697 .enhanced_uploader .one-file { 1686 1698 display: none; 1687 }1699 } 1688 1700 label span.one-file { 1689 1701 display: inline; 1690 }1702 } 1691 1703 .enhanced_uploader p.clear { 1692 1704 padding-top: 1em; 1693 1705 margin-bottom: 1em; 1694 }1706 } 1695 1707 #add-file-f p.clear { 1696 1708 margin-top: 1em; 1697 1709 margin-bottom: 0; 1698 1710 clear: both; 1699 } 1700 /* files */ 1711 } 1701 1712 .files { 1702 1713 list-style-type: none; 1703 1714 margin-left: 0; 1704 1715 padding-left: 0; 1705 } 1716 border-bottom: 1px solid #ddd; 1717 } 1706 1718 .files li { 1707 1719 margin-left: 0; 1708 1720 padding-left: 0; 1709 }1721 } 1710 1722 .upload-msg { 1711 1723 font-weight: bold; 1712 }1724 } 1713 1725 .upload-msg.upload-error { 1714 1726 color: #c00; 1715 }1727 } 1716 1728 .upload-files { 1717 1729 padding: 0 0.5em; 1718 margin: 1 0px0;1719 }1730 margin: 1em 0; 1731 } 1720 1732 .upload-file { 1721 margin: 0 0 8px 0; 1733 margin: 0; 1734 padding: .3em 0; 1735 border-top: 1px solid #ddd; 1722 1736 position: relative; 1723 }1737 } 1724 1738 .upload-fileinfo { 1725 margin-left: 8px; 1726 margin-bottom: .4em; 1727 } 1739 margin-left: 0; 1740 /* margin-bottom: .4em;*/ 1741 } 1742 .upload-fileinfo input { 1743 position: absolute; 1744 top: .5em; 1745 right: .5em; 1746 } 1728 1747 .upload-fileinfo span { 1729 1748 padding-right: 8px; 1730 }1749 } 1731 1750 .upload-fileinfo .upload-filecancel { 1732 1751 display: block; … … 1739 1758 cursor: pointer; 1740 1759 float: left; 1741 }1760 } 1742 1761 .upload-filemsg { 1743 1762 font-weight: bold; 1744 1763 color: green; 1745 }1764 } 1746 1765 .upload-filemsg.upload-error { 1747 1766 color: #c00; 1748 }1767 } 1749 1768 .upload-progress { 1750 padding: 0 8px;1751 }1769 padding: .3em 0; 1770 } 1752 1771 .upload-progress div { 1753 1772 width: 0; … … 1761 1780 color: white; 1762 1781 border-radius: 2px; 1763 }1782 } 1764 1783 div.template-upload { 1765 1784 clear: both; 1766 }1785 } 1767 1786 .queue-message { 1768 1787 font-weight: bold; 1769 margin: 0 0 1em 0; 1770 } 1788 } 1771 1789 1772 1790 /* --------------------------------------------------------------- media-item.php */
Note: See TracChangeset
for help on using the changeset viewer.