<div dir="ltr"><div><div><div>Hi,<br><br></div>How did you land on this page?<br><br>The URL to access is supposed to be <a href="http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/crs.html">http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/crs.html</a><br></div><br>In your link, in the js<br><br>if (langPlusPage==undefined){<br>            currentPage = currentPage.replace('index.html','')<br>            search = new RegExp('\/[a-zA-Z_]{2,8}\/'+ currentPage, 'gi');<br>            langPlusPage = window.location.href.match(search);<br>}<br><br></div>but currentPage contains currentPage value is <span class="">"docs/pyqgis_developer_cookbook/crs.html"</span><div><br>As your url is <a href="http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/crs">http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/crs</a>,<br>window.location.href.match(search); failed and you get your alert popup.<br><br><br></div><div>Cheers<br><br><br></div><div>Thomas Gratier<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-20 10:09 GMT+02:00 Tom Chadwin <span dir="ltr"><<a href="mailto:tom.chadwin@nnpa.org.uk" target="_blank">tom.chadwin@nnpa.org.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm getting a popup on this page:<br>
<br>
<a href="http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/crs" rel="noreferrer" target="_blank">http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/crs</a><br>
<br>
"There is an documentation error, please report back to QGIS devs."<br>
<br>
Not visited the page before, so I don't know whether the problem has just<br>
occurred.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/JS-error-popup-on-PyQGIS-dev-cookbook-page-tp5262013.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/JS-error-popup-on-PyQGIS-dev-cookbook-page-tp5262013.html</a><br>
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div><br></div>