Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2617 from darkwing/remove-dead-cells
Browse files Browse the repository at this point in the history
Remove unused cells from attachment list
  • Loading branch information
jezdez committed Aug 8, 2014
2 parents 2e53310 + d3bdc83 commit 57da54b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions kuma/wiki/templates/wiki/includes/attachment_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@ <h3><i aria-hidden="true" class="icon-paperclip"></i>{{ _('Attachments') }} <a h
{{ csrf() }}
<table cellpadding="0" cellspacing="0" id="page-attachments-new-table" class="hidden">
<thead>
<th class="hidden page-attachment-actions-cell">&nbsp;</th>
<th>{{ _('File') }}</th>
<th>{{ _('Title') }}</th>
<th>{{ _('Description') }}</th>
<th>{{ _('Comments') }}</th>
</thead>
<tbody>
<tr>
<td class="hidden page-attachment-actions-cell"><a href="javascript:;" class="hidden delete-attachment">{{ _('Delete') }}</a></td>
<td class="page-attachment-actions-file-cell">{{ attachment_form.file | safe }}</td>
<td>{{ attachment_form.title | safe }}</td>
<td>{{ attachment_form.description | safe }}</td>
Expand Down
4 changes: 0 additions & 4 deletions media/js/wiki-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,10 +711,6 @@
$clone.insertBefore($attachmentsNewTableActions);
$clone.addClass('dynamic-row');

// Show the cell actions now!
$attachmentsNewTable.find('.page-attachment-actions-cell').removeClass('hidden');
$clone.find('.delete-attachment').removeClass('hidden');

return $clone;
}
clone().find('input[type="text"]')[0].focus();
Expand Down

0 comments on commit 57da54b

Please sign in to comment.