public/front/js/New Tab_files/newTab.js
/**
   * Pins the dragged site in its new place.
   * @param aCell The drop target cell.
   * @param aEvent The 'dragexit' event.
   */
Pins the dragged site in its new place.
@param aCell The drop target cell.
@param aEvent The 'dragexit' event.
Pins the dragged site in its new place . @param aCell The drop target cell . @param aEvent The ' dragexit ' event .
function Drop_pinDraggedSite(aCell, aEvent) {
    let index = aCell.index;
    let draggedSite = gDrag.draggedSite;
    if (draggedSite) {
      if (aCell != draggedSite.cell)
        draggedSite.pin(index);
    } else {
      let link = gDragDataHelper.getLinkFromDragEvent(aEvent);
      if (link) {
        gPinnedLinks.pin(link, index);
        gBlockedLinks.unblock(link);
      }
    }
  }
function Drop_pinDraggedSite ( aCell , aEvent ) { let index = aCell . index ; let draggedSite = gDrag . draggedSite ; if ( draggedSite ) { if ( aCell != draggedSite . cell ) draggedSite . pin ( index ) ; } else { let link = gDragDataHelper . getLinkFromDragEvent ( aEvent ) ; if ( link ) { gPinnedLinks . pin ( link , index ) ; gBlockedLinks . unblock ( link ) ; } } }
Pins the dragged site in its new place.
Pins the dragged site in its new place .
// Pin the dragged site at its new place. // A new link was dragged onto the grid. Create it by pinning its URL. // Make sure the newly added link is not blocked.