Back to PhocaGalleryRenderMap class

Method cancelEventF

public
cancelEventF
()

Method cancelEventF - Source code

public function cancelEventF()
{
    $js = 'function CancelEventPhocaMap(event) { ' . "\n" . '   var e = event; ' . "\n" . '   if (typeof e.preventDefault == \'function\') e.preventDefault(); ' . "\n" . '   if (typeof e.stopPropagation == \'function\') e.stopPropagation(); ' . "\n" . '   if (window.event) { ' . "\n" . '       window.event.cancelBubble = true; /* for IE */' . "\n" . '	     window.event.returnValue = false; /* for IE */' . "\n" . '   } ' . "\n" . '}' . "\n";
    return $js;
}