Dotclear

Changeset 3120:073a5a9eb3eb


Ignore:
Timestamp:
10/18/15 13:09:49 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.8
source:
5abdd3eec6728378b78cb0a9a96283ba1194a773
Message:

Fixes #1934, do not cope with browse file button when not in enhanced mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/_media.js

    r2512 r3116  
    33          return this.each(function() { 
    44               var me = $(this); 
     5               var $container = $(me).parent(); 
    56 
    67               function enableButton(button) { 
     
    2627 
    2728               $('.button.choose_files').click(function(e) { 
    28                     // Use the native click() of the file input. 
    29                     $('#upfile').click(); 
    30                     e.preventDefault(); 
     29                    if ($container.hasClass('enhanced_uploader')) { 
     30                         // Use the native click() of the file input. 
     31                         $('#upfile').click(); 
     32                         e.preventDefault(); 
     33                    } 
    3134               }); 
    3235 
     
    8083               }); 
    8184 
    82                var $container = $(me).parent(); 
    8385               var $msg,label; 
    8486 
Note: See TracChangeset for help on using the changeset viewer.

Sites map