]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'jquery-cookie-undefined' into 'nightly'
authormmn <mmn@hethane.se>
Fri, 10 Jul 2015 14:03:30 +0000 (14:03 +0000)
committermmn <mmn@hethane.se>
Fri, 10 Jul 2015 14:03:30 +0000 (14:03 +0000)
Updates jquery.cookie usage to match changes from v1.4.0

`$.cookie('name')` returns `undefined` instead of `null` when cookie is not present.

This fixes a problem where the browser was never asking for location,
and the JSON.parse call was throwing an exception when the geolocation
cookie wasn't present.

Deleting a cookie should use `$.removeCookie('name')` instead of `$.cookie('name', null)`.

[Reference](https://github.com/carhartl/jquery-cookie/blob/7f88a4e631aba8a8c688fd8999ce6b9bcfd50718/CHANGELOG.md#140).

See merge request !20


Trivial merge