BUGFIX #3051 ajshort: Improved layout of assettablefield drag icon

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@66079 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-11-17 22:42:40 +00:00
parent 325ef6fe34
commit 18d735fca1
2 changed files with 16 additions and 12 deletions

View File

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

View File

@ -6,7 +6,8 @@
<table class="data">
<thead>
<tr>
<% if Markable %><th width="36">&nbsp;</th><% end_if %>
<th width="18">&nbsp;</th>
<% if Markable %><th width="18">&nbsp;</th><% end_if %>
<% control Headings %>
<th class="$Name">$Title</th>
<% end_control %>
@ -17,7 +18,10 @@
<tbody>
<% control Items %>
<tr id="record-$Parent.Name-$ID">
<% if Markable %><td width="36" class="markingcheckbox"><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> $MarkingCheckbox</td><% end_if %>
<td 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>
<% if Markable %><td class="markingcheckbox">$MarkingCheckbox</td><% end_if %>
<% control Fields %>
<td>$Value</td>
<% end_control %>