my( $self, $c ) = @_;
my $tradition = delete $c->stash->{'tradition'};
my $collation = $tradition->collation;
+ my $m = $c->model('Directory');
if( $c->request->method eq 'GET' ) {
my @pairs = $collation->relationships; # returns the edges
my @all_relations;
try {
my @vectors = $collation->add_relationship( $node, $target, $opts );
$c->stash->{'result'} = \@vectors;
+ $m->save( $tradition );
} catch( Text::Tradition::Error $e ) {
$c->response->status( '403' );
$c->stash->{'result'} = { 'error' => $e->message };
try {
my @vectors = $collation->del_relationship( $node, $target );
+ $m->save( $tradition );
$c->stash->{'result'} = \@vectors;
} catch( Text::Tradition::Error $e ) {
$c->response->status( '403' );
#dialog_overlay {
display: none;
position: absolute;
- background-image: url("/css/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png");
+ background-image: url("cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png");
background-repeat: repeat;
background-attachment: scroll;
background-position: 50% 50%;
width: 46px;
margin-top: 17px;
border: none;
- background-image: url('/images/act_icons.png');
+ background-image: url('../images/act_icons.png');
background-position: 0px 44px;
background-color: none;
background-repeat: none;
top: 140px;
border: 2px solid #B0C6F7;
background: #fff;
- background: url("/css/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png");
+ background: url("cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png");
background-repeat: repeat-x;
background-scroll: scroll;
background-position: 50% top;