Changeset 2202:beec29418927 for admin/js
- Timestamp:
- 10/02/13 13:01:53 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_media.js
r1952 r2202 69 69 if (data.result.files[0].html !==undefined) { 70 70 $('.media-list .files-group').append(data.result.files[0].html); 71 $('#form-medias .hide').removeClass('hide'); 71 72 } 72 73 $('.button.clean',me).show(); … … 130 131 $('#fileupload').enhancedUploader(); 131 132 133 $('.checkboxes-helpers').each(function() { 134 dotclear.checkboxesHelpers(this); 135 }); 136 137 $('#form-medias').submit(function() { 138 var count_checked = $('input[name="medias[]"]:checked', $(this)).length; 139 console.log('count: ', count_checked); 140 if (count_checked==0) { 141 return false; 142 } 143 144 return window.confirm(dotclear.msg.confirm_delete_medias.replace('%d',count_checked)); 145 }); 146 132 147 // Replace remove links by a POST on hidden form 133 148 fileRemoveAct(); … … 135 150 function fileRemoveAct() { 136 151 $('body').on('click','a.media-remove',function() { 137 var m_name = $(this).parents(' ul').find('li:first>a').text();152 var m_name = $(this).parents('.media-item').find('a.media-link').text(); 138 153 if (window.confirm(dotclear.msg.confirm_delete_media.replace('%s',m_name))) { 139 154 var f = $('#media-remove-hide').get(0);
Note: See TracChangeset
for help on using the changeset viewer.