Dotclear

Changeset 1166:5a63ea323db3 for admin


Ignore:
Timestamp:
07/10/13 16:49:28 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Children:
1167:97aeaa82f1c9, 1169:ad8a95442171
Message:

[jsUpload] button clean only clean already upload files
button cancel and clean are hidden when they are not needed
button start is hidden by default

Location:
admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/js/_media.js

    r1165 r1166  
    1111 
    1212     $('.button.cancel', '#fileupload').click(function(e) { 
    13           $(this).hide(); 
     13          $('.button.cancel, .button.start','#fileupload .fileupload-buttonbar').hide(); 
    1414     }); 
    1515 
    1616     $('.button.clean', '#fileupload').click(function(e) { 
    17           $('.fileupload-ctrl .files .upload-file', '#fileupload').slideUp(500, function() { 
     17          $('.fileupload-ctrl .files .template-download', '#fileupload').slideUp(500, function() { 
    1818               $(this).remove(); 
    1919          }); 
    2020          $(this).hide(); 
    21           $('.button.cancel','#fileupload').hide(); 
    2221          e.preventDefault(); 
    2322     }); 
     
    2827          disabled: true 
    2928     }).bind('fileuploadadd', function(e, data) { 
    30           $('.button.cancel').show(); 
     29          $('.button.cancel, .button.start', '#fileupload .fileupload-buttonbar').show(); 
    3130     }).bind('fileuploaddone', function(e, data) { 
    3231          if (data.result.files[0].html !==undefined) { 
     
    3433          } 
    3534          $('.button.clean','#fileupload').show(); 
     35     }).bind('fileuploadalways', function(e, data) { 
     36         if ($('.fileupload-ctrl .files .template-upload', '#fileupload').length==0) { 
     37          $('.button.start, .button.cancel','#fileupload .fileupload-buttonbar').hide(); 
     38         } 
    3639     }); 
    3740 
     
    4851     } 
    4952 
    50      $('<p class="clear"><a href="#">' + $msg + '</a></p>').click( function() { 
     53     $('<p class="clear"><a class="enhanced-toggle" href="#">' + $msg + '</a></p>').click( function() { 
    5154          if ($container.hasClass('enhanced_uploader')) { 
    5255               $msg = dotclear.msg.enhanced_uploader_activate; 
  • admin/style/jsUpload/style.css

    r1164 r1166  
    3838} 
    3939 
    40 .button.clean, .button.cancel, .button.add { 
     40.button.clean, .button.cancel, .button.add, .enhanced_uploader .fileupload-buttonbar .button.start { 
    4141  display: none; 
    4242} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map