Dotclear

Changeset 1852:c0c05a0c54a3


Ignore:
Timestamp:
09/14/13 13:31:08 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Media.php. Amélioration de l'upload multiple, ajout d'une image pour remonter dans l'arbo, présentation un peu différente pour les répertoires vs. fichiers.

Location:
admin
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • admin/js/_media.js

    r1782 r1852  
    2525               } 
    2626                
    27                $('.button.add').click(function(e) { 
     27               $('.button.choose_files').click(function(e) { 
    2828                    // Use the native click() of the file input. 
    2929                    $('#upfile').click(); 
  • admin/media.php

    r1849 r1852  
    372372     echo 
    373373     '<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>'. 
    375375     '<input type="file" id="upfile" name="upfile[]"'.($user_ui_enhanceduploader?' multiple="mutiple"':'').' data-url="'.html::escapeURL($page_url).'" /></p>'; 
    376376 
  • admin/style/default.css

    r1851 r1852  
    563563     border-radius: 3px; 
    564564     cursor: pointer; 
     565     font: 100% "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif; 
    565566     } 
    566567button, 
     
    571572     } 
    572573 /* validation */ 
    573 input[type=submit], a.button.submit { 
     574input[type=submit], a.button.submit, input.button.start { 
    574575     color: #fff; 
    575576     border: 1px solid #2C8FD1; 
     
    581582     } 
    582583     input[type=submit]:hover, input[type=submit]:focus, 
     584     input.button.start:hover, input.button.start:focus, 
    583585     a.button.submit:hover, a.button.submit:focus { 
    584586          background-image:-moz-linear-gradient(top,#188BC0 0%,#25A6E1 100%); 
     
    16201622     min-height: 120px 
    16211623     } 
     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          } 
    16221631     .media-item ul { 
    16231632          display: block; 
     
    16261635          padding: 0; 
    16271636          } 
     1637     .media-folder ul, .media-folder img { 
     1638          padding-left: 2em; 
     1639          } 
    16281640     a.media-icon { 
    16291641          display: block; 
     
    16431655     display: block; 
    16441656     position: absolute; 
    1645      top: 5px; 
    1646      right: 5px; 
     1657     bottom: 4px; 
     1658     right: 8px; 
    16471659     height: 16px; 
    16481660     } 
     
    16601672     padding: 5px 0 5px 20px; 
    16611673     } 
    1662  
     1674/* upload multiple */ 
    16631675.enhanced_uploader .add, .enhanced_uploader .cancel,  
    16641676.enhanced_uploader .clean, .enhanced_uploader .start { 
    16651677     margin-right: .4em; 
    1666 } 
     1678     } 
    16671679.enhanced_uploader #upfile { 
    16681680     visibility: hidden; 
     
    16731685     filter: alpha(opacity=0); 
    16741686     cursor: pointer; 
    1675 } 
     1687     } 
    16761688.button.clean, .button.cancel, .button.add { 
    16771689     display: none; 
    1678 } 
     1690     } 
    16791691.enhanced_uploader .button.add { 
    16801692     display: inline-block; 
    1681 } 
     1693     } 
    16821694.enhanced_uploader .max-size { 
    16831695     display: block; 
    1684 } 
     1696     } 
    16851697.enhanced_uploader .one-file { 
    16861698     display: none; 
    1687 } 
     1699     } 
    16881700label span.one-file { 
    16891701     display: inline; 
    1690 } 
     1702     } 
    16911703.enhanced_uploader p.clear { 
    16921704     padding-top: 1em; 
    16931705     margin-bottom: 1em; 
    1694 } 
     1706     } 
    16951707#add-file-f p.clear { 
    16961708     margin-top: 1em; 
    16971709     margin-bottom: 0; 
    16981710     clear: both; 
    1699 } 
    1700 /* files */ 
     1711     } 
    17011712.files { 
    17021713     list-style-type: none; 
    17031714     margin-left: 0; 
    17041715     padding-left: 0; 
    1705 } 
     1716     border-bottom: 1px solid #ddd; 
     1717     } 
    17061718.files li { 
    17071719     margin-left: 0; 
    17081720     padding-left: 0; 
    1709 } 
     1721     } 
    17101722.upload-msg { 
    17111723     font-weight: bold; 
    1712 } 
     1724     } 
    17131725.upload-msg.upload-error { 
    17141726     color: #c00; 
    1715 } 
     1727     } 
    17161728.upload-files { 
    17171729     padding: 0 0.5em; 
    1718      margin: 10px 0; 
    1719 } 
     1730     margin: 1em 0; 
     1731     } 
    17201732.upload-file { 
    1721      margin: 0 0 8px 0; 
     1733     margin: 0; 
     1734     padding: .3em 0; 
     1735     border-top: 1px solid #ddd; 
    17221736     position: relative; 
    1723 } 
     1737     } 
    17241738.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     } 
    17281747.upload-fileinfo span { 
    17291748     padding-right: 8px; 
    1730 } 
     1749     } 
    17311750.upload-fileinfo .upload-filecancel { 
    17321751     display: block; 
     
    17391758     cursor: pointer; 
    17401759     float: left; 
    1741 } 
     1760     } 
    17421761.upload-filemsg { 
    17431762     font-weight: bold; 
    17441763     color: green; 
    1745 } 
     1764     } 
    17461765.upload-filemsg.upload-error { 
    17471766     color: #c00; 
    1748 } 
     1767     } 
    17491768.upload-progress { 
    1750      padding: 0 8px; 
    1751 } 
     1769     padding: .3em 0;  
     1770     } 
    17521771.upload-progress div { 
    17531772     width: 0; 
     
    17611780     color: white; 
    17621781     border-radius: 2px; 
    1763 } 
     1782     } 
    17641783div.template-upload { 
    17651784     clear: both; 
    1766 } 
     1785     } 
    17671786.queue-message { 
    17681787     font-weight: bold; 
    1769      margin: 0 0 1em 0; 
    1770 } 
     1788     } 
    17711789 
    17721790/* --------------------------------------------------------------- media-item.php */ 
Note: See TracChangeset for help on using the changeset viewer.

Sites map