From c9bc8c41c70be1c0397d42ce62eb0f87187bb91c Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 19 Nov 2008 00:49:02 +0000 Subject: [PATCH] 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 --- javascript/AssetAdmin.js | 2 +- templates/Includes/AssetTableField.ss | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/javascript/AssetAdmin.js b/javascript/AssetAdmin.js index c8f507a7..cc15812f 100755 --- a/javascript/AssetAdmin.js +++ b/javascript/AssetAdmin.js @@ -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(); diff --git a/templates/Includes/AssetTableField.ss b/templates/Includes/AssetTableField.ss index 2c6f195a..8a7fe7f1 100755 --- a/templates/Includes/AssetTableField.ss +++ b/templates/Includes/AssetTableField.ss @@ -18,9 +18,11 @@ <% control Items %> - - Drag - + +
+ Drag +
+ <% if Markable %>$MarkingCheckbox<% end_if %> <% control Fields %> $Value