Back to PhocaGalleryRenderMap class

Method checkMapF

public
checkMapF
()

Method checkMapF - Source code

public function checkMapF()
{
    $js = 'function CheckPhocaMap() {' . "\n" . '   if (' . $this->_tst . ') {' . "\n" . '      if (' . $this->_tst . '.offsetWidth != ' . $this->_tst . '.getAttribute("oldValue")) {' . "\n" . '         ' . $this->_tst . '.setAttribute("oldValue",' . $this->_tst . '.offsetWidth);' . "\n" . '		   if (' . $this->_tst . '.getAttribute("refreshMap")==0) {' . "\n" . '		      if (' . $this->_tst . '.offsetWidth > 0) {' . "\n" . '			     clearInterval(' . $this->_tstint . ');' . "\n" . '				 getPhocaMap();' . "\n" . '				 ' . $this->_tst . '.setAttribute("refreshMap", 1);' . "\n" . '			  } ' . "\n" . '		   }' . "\n" . '		}' . "\n" . '   }' . "\n" . '}' . "\n";
    return $js;
}