[Qgis-developer] JS error popup on PyQGIS dev cookbook page

Thomas Gratier osgeo.mailinglist at gmail.com
Thu Apr 21 04:47:03 PDT 2016


Hi,

How did you land on this page?

The URL to access is supposed to be
http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/crs.html

In your link, in the js

if (langPlusPage==undefined){
            currentPage = currentPage.replace('index.html','')
            search = new RegExp('\/[a-zA-Z_]{2,8}\/'+ currentPage, 'gi');
            langPlusPage = window.location.href.match(search);
}

but currentPage contains currentPage value is
"docs/pyqgis_developer_cookbook/crs.html"

As your url is
http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/crs,
window.location.href.match(search); failed and you get your alert popup.


Cheers


Thomas Gratier

2016-04-20 10:09 GMT+02:00 Tom Chadwin <tom.chadwin at nnpa.org.uk>:

> I'm getting a popup on this page:
>
> http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/crs
>
> "There is an documentation error, please report back to QGIS devs."
>
> Not visited the page before, so I don't know whether the problem has just
> occurred.
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/JS-error-popup-on-PyQGIS-dev-cookbook-page-tp5262013.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160421/1b0c096e/attachment-0001.html>


More information about the Qgis-developer mailing list