Author Topic: Adding an action when transferring a 'user's contact to workspace  (Read 3100 times)

Geraldoc

  • Newbie
  • *
  • Posts: 7
    • View Profile
Hi Folks,

I am trying to make a change to the code so that when I add a user to a workspace via drag and drop he is automatically given read and write access to that folder.

I have found the code for listening for the start of the drag and drop,

 function renderDragHandle(value, p, r) {
return '<div class="img-grid-drag" title="' + lang('click to drag') + '" onmousedown="

var sm = Ext.getCmp(\'contact-manager\').getSelectionModel();
if (!sm.isSelected('+r.data.ix+'))
sm.clearSelections();

sm.selectRow('+r.data.ix+', true);

"></div>';

But I am unsure where the action of updating the database takes place.

Any thoughts folks?