Added link to manage aspects page from sidebar.
Now you can drag requests from that page, but not existing contacts. d&d interface for moving contacts between aspects needs some thought.
This commit is contained in:
parent
73c7a1d339
commit
050918a310
3 changed files with 3 additions and 3 deletions
|
|
@ -89,7 +89,7 @@
|
|||
%br
|
||||
|
||||
%h3{:style=>"position:relative;"}
|
||||
= t('.aspects')
|
||||
= link_to(t('.aspects'), aspects_manage_path)
|
||||
.right{:style=>"font-size:12px;top:7px;"}
|
||||
= link_to t('.add_aspect'), '#add_aspect_pane', :class => "add_aspect_button"
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
var AspectEdit = {
|
||||
|
||||
initialize: function() {
|
||||
$("ul .person").draggable({
|
||||
$("ul .person.request").draggable({
|
||||
revert: true,
|
||||
start: AspectEdit.startDrag,
|
||||
drag: AspectEdit.duringDrag,
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ describe("AspectEdit", function() {
|
|||
drag: AspectEdit.duringDrag,
|
||||
stop: AspectEdit.stopDrag
|
||||
});
|
||||
expect($.fn.draggable.mostRecentCall.object.selector).toEqual("ul .person");
|
||||
expect($.fn.draggable.mostRecentCall.object.selector).toEqual("ul .person.request");
|
||||
});
|
||||
it("calls droppable on .aspect ul.dropzone", function() {
|
||||
spyOn($.fn, "droppable");
|
||||
|
|
|
|||
Loading…
Reference in a new issue