]> git.mxchange.org Git - quix0rs-gnu-social.git/commit - lib/selftagswidget.php
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)
commitc037f04d174f8359c77af03d323bca03032ef7fd
tree689d7b012aea82dfdc5bfb0abd9018e01962f5e9
parente46b2803a728104adcd17b19912f8f7a9a6428fd
parenta25d952ef9ab458b875e6a250d101178b8a582bb
Merge branch 'jquery-cookie-undefined' into 'nightly'

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