Skip to content

Commit

Permalink
allow for special chars in contact if, fix typo in group listing
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoh committed Nov 13, 2010
1 parent 41053c8 commit 6078322
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contextmenu.js
Expand Up @@ -317,7 +317,7 @@ function rcm_update_options(el) {
}

function rcm_addressmenu_init(row) {
$("#" + row).contextMenu({
$("tr[id=" + row + "]").contextMenu({
menu: 'rcmAddressMenu'
},
function(command, el, pos) {
Expand Down
4 changes: 2 additions & 2 deletions contextmenu.php
Expand Up @@ -279,9 +279,9 @@ private function _gen_addressbooks_list($arrBooks, $command)
}

if ($source['readonly'])
$out .= html::tag('li', array('class' => 'contactgroup disabled'), html::a(array('href' => $command, 'id' => 'rcm_contextgrps_'. JQ($gid), 'onclick' => "rcm_set_dest_book('" . JQ($gid) . "', '" . JQ($id) . "', '" . JQ($group['ID']) ."')", 'class' => 'active', 'title' => $title), Q('  ' . $groupname)));
$out .= html::tag('li', array('class' => 'contactgroup disabled'), html::a(array('href' => $command, 'id' => 'rcm_contextgrps_'. JQ($gid), 'onclick' => "rcm_set_dest_book('" . JQ($gid) . "', '" . JQ($id) . "', '" . JQ($group['ID']) ."')", 'class' => 'active', 'title' => $title), '  ' . Q($groupname)));
else
$out .= html::tag('li', array('class' => 'contactgroup'), html::a(array('href' => $command, 'id' => 'rcm_contextgrps_'. JQ($gid), 'onclick' => "rcm_set_dest_book('" . JQ($gid) . "', '" . JQ($id) . "', '" . JQ($group['ID']) ."')", 'class' => 'active', 'title' => $title), Q('  ' . $groupname)));
$out .= html::tag('li', array('class' => 'contactgroup'), html::a(array('href' => $command, 'id' => 'rcm_contextgrps_'. JQ($gid), 'onclick' => "rcm_set_dest_book('" . JQ($gid) . "', '" . JQ($id) . "', '" . JQ($group['ID']) ."')", 'class' => 'active', 'title' => $title), '  ' . Q($groupname)));

$groupTotal++;
}
Expand Down

0 comments on commit 6078322

Please sign in to comment.