BUGFIX Fixed draggable bug in AssetTableField - thanks for ajshort for the patch - ticket #3051

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@66194 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-11-19 00:49:02 +00:00 committed by Sam Minnee
parent 8bc9fa1723
commit c9bc8c41c7
2 changed files with 6 additions and 4 deletions

View File

@ -228,7 +228,7 @@ DragFileItem.prototype = {
this.draggable = null;
}
}
DragFileItem.applyTo('#Form_EditForm_Files tr .dragfile');
DragFileItem.applyTo('#Form_EditForm_Files tr td .dragfile');
// Set up folder drop target
DropFileItem = Class.create();

View File

@ -18,9 +18,11 @@
<tbody>
<% control Items %>
<tr id="record-$Parent.Name-$ID">
<td class="dragfile" id="drag-$Parent.Name-$ID">
<td>
<div class="dragfile" id="drag-$Parent.Name-$ID">
<img id="drag-img-$Parent.Name-$ID" alt="Drag" title="<% _t('DRAGTOFOLDER','Drag to folder on left to move file') %>" src="sapphire/images/drag.gif" />
</div>
</td>
<% if Markable %><td class="markingcheckbox">$MarkingCheckbox</td><% end_if %>
<% control Fields %>
<td>$Value</td>