Skip to content

Commit

Permalink
DG IZ; dropzones now light up when dragging on aspect page
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvincent committed Sep 17, 2010
1 parent 95a4120 commit 755e2a7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/javascripts/aspect-edit.js
Expand Up @@ -39,6 +39,7 @@ $(function() {
});

$(".aspect ul").droppable({
hoverClass: 'active',
drop: function(event, ui) {

if ($(ui.draggable[0]).hasClass('requested_person')){
Expand Down Expand Up @@ -69,6 +70,7 @@ $(function() {
});

$(".remove ul").droppable({
hoverClass: 'active',
drop: function(event, ui) {

if ($(ui.draggable[0]).hasClass('requested_person')){
Expand Down
4 changes: 4 additions & 0 deletions public/stylesheets/application.css
Expand Up @@ -547,6 +547,10 @@ h1.big_text {
border: 1px solid #cccccc;
list-style: none;
padding: 15px; }
.aspect ul.dropzone.active,
.requests ul.dropzone.active,
.remove ul.dropzone.active {
background-color: #fafafa; }
.aspect .person,
.aspect .requested_person,
.requests .person,
Expand Down
4 changes: 4 additions & 0 deletions public/stylesheets/sass/application.sass
Expand Up @@ -711,6 +711,10 @@ h1.big_text
:style none
:padding 15px

&.active
:background
:color #fafafa

.person,
.requested_person
:display inline-block
Expand Down

0 comments on commit 755e2a7

Please sign in to comment.