]> source.dussan.org Git - nextcloud-server.git/commit
Fix parsing of sharetime as string
authorMorris Jobke <hey@morrisjobke.de>
Wed, 8 Jul 2015 13:23:01 +0000 (15:23 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 29 Jul 2015 12:58:54 +0000 (14:58 +0200)
commit47d25989dc974879827925f72d904548785a1828
tree3429c62cac87c166c58c49bae912cbdad460eb8e
parentb186a7822c0ce1c16f8e76d9925d01850d235772
Fix parsing of sharetime as string

In some cases the ajax/share.php will return the share time as string.
If this is the case it would get parsed completely wrong and cause the
share dropdown to not work anymore. This change will properly cast the
string to an interger and also fallback if this is not possible.
core/js/share.js
core/js/tests/specs/shareSpec.js