#300: Added some visual feedback when hovering over drop target

This commit is contained in:
Henrik Bohre 2009-06-14 23:15:45 +02:00 committed by Eric Allen
parent 00e063a0a2
commit 08d24a1b8f
2 changed files with 7 additions and 1 deletions

View file

@ -46,7 +46,8 @@ draggable_element(dom_id(todo), :revert => "'true'", :handle => "'grip'", :onDr
<%=
drop_receiving_element(dom_id(todo),
:url => {:controller => "todos", :action => "add_predecessor"},
:with => "'successor=' + encodeURIComponent(element.id.split('_').last()) + '&predecessor=' + encodeURIComponent(#{todo.id})"
:with => "'successor=' + encodeURIComponent(element.id.split('_').last()) + '&predecessor=' + encodeURIComponent(#{todo.id})",
:hoverclass => 'hover'
)
%>

View file

@ -939,6 +939,11 @@ div.message {
cursor: move;
}
.hover {
background: #EAEAEA;
font-weight: bold;
}
/* Error message styles */
.fieldWithErrors {
padding: 2px;