Ticket #11184: 11184-4-bulkedit.patch
| File 11184-4-bulkedit.patch, 986 bytes (added by nacin, 3 years ago) |
|---|
-
inline-edit-post.dev.js
74 74 }, 75 75 76 76 setBulk : function() { 77 var te = '', type = this.type, tax ;77 var te = '', type = this.type, tax, c = 0; 78 78 this.revert(); 79 79 80 80 $('#bulk-edit td').attr('colspan', $('.widefat:first thead th:visible').length); … … 83 83 84 84 $('tbody th.check-column input[type="checkbox"]').each(function(i){ 85 85 if ( $(this).attr('checked') ) { 86 c++; 86 87 var id = $(this).val(), theTitle; 87 88 theTitle = $('#inline_'+id+' .post_title').text() || inlineEditL10n.notitle; 88 89 te += '<div id="ttle'+id+'"><a id="_'+id+'" class="ntdelbutton" title="'+inlineEditL10n.ntdeltitle+'">X</a>'+theTitle+'</div>'; 89 90 } 90 91 }); 91 92 93 if (c == 0) 94 this.revert(); 95 92 96 $('#bulk-titles').html(te); 93 97 $('#bulk-titles a').click(function() { 94 98 var id = $(this).attr('id').substr(1);
