mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-20 07:56:09 +01:00
#300: Added some visual feedback when hovering over drop target
This commit is contained in:
parent
00e063a0a2
commit
08d24a1b8f
2 changed files with 7 additions and 1 deletions
|
|
@ -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'
|
||||
)
|
||||
%>
|
||||
|
||||
|
|
|
|||
|
|
@ -939,6 +939,11 @@ div.message {
|
|||
cursor: move;
|
||||
}
|
||||
|
||||
.hover {
|
||||
background: #EAEAEA;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Error message styles */
|
||||
.fieldWithErrors {
|
||||
padding: 2px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue