Changeset 3120:073a5a9eb3eb
- Timestamp:
- 10/18/15 13:09:49 (10 years ago)
- Branch:
- 2.8
- source:
- 5abdd3eec6728378b78cb0a9a96283ba1194a773
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_media.js
r2512 r3116 3 3 return this.each(function() { 4 4 var me = $(this); 5 var $container = $(me).parent(); 5 6 6 7 function enableButton(button) { … … 26 27 27 28 $('.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 } 31 34 }); 32 35 … … 80 83 }); 81 84 82 var $container = $(me).parent();83 85 var $msg,label; 84 86
Note: See TracChangeset
for help on using the changeset viewer.