Mercurial > defr > drupal > scald > dnd
changeset 40:af4b3c09cc10
Add CSS style helping the end user visualize the dropped item
author | Franck Deroche <franck@defr.org> |
---|---|
date | Fri, 18 Sep 2009 15:18:09 +0200 |
parents | 3a8422ac941c |
children | 96b0c9ac3b28 |
files | js/dnd-library.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/js/dnd-library.js Fri Sep 18 15:17:42 2009 +0200 +++ b/js/dnd-library.js Fri Sep 18 15:18:09 2009 +0200 @@ -221,7 +221,7 @@ $(target).bind('dnd_delete', function(e, data) { Drupal.behaviors.dndLibrary.countElements(target, $(data.node).attr('dnd_id'), true); }); - $('head', $(this).contents()).append('<style type="text/css">img { display: none; } img.dnd-dropped {display: block; }</style>'); + $('head', $(this).contents()).append('<style type="text/css">img { display: none; } img.dnd-dropped {display: block; } div.dnd-drop-wrapper {background: #efe; border: 1px #090 solid;}</style>'); return this; }); },