Changes to the Globalize.js API and jQuery UI

I am trying to reproduce examples from jQuery UI like this one . I would like to use globalization functions (for example, for a currency field), but it seems that Globalize.js went through the main API, change it, so that the code used in the examples of the user interface does not work with the version of Globalization you downloaded. For example, the jQuery user interface depends on the Globalize.parseFloat function, which does not exist in this version.

So the jQuery user interface uses an obsolete version of Globalize.js, but how do I download it? I could not find any information about this, nor about API changes. I could download the JS files that were included in the jQuery UI, obviously, but I was hoping for a “more formal” solution.

+4
source share
3 answers

I can confirm that releases of Globalize 1.0.0-alpha are not compatible with current versions of jQuery UI 1.11.x. I have successfully used Globalize 0.1.1 using jQuery UI 1.11.x.

jQuery , "... datepicker. API, . Globalize, CLDR, ". , !

+3

2016 , jQuery 1.11.x - (v1.12 BETA). , . OP, jQuery , @wedgef5 - v0.1.1 .

. , , . Bower, ( v1.1). , , Bower :

bower uninstall globalize --save

bower install globalize#0.1.1 --save

, - . , :). bower.json :

{ "name": "yourpackage", ... "dependencies": { ... "globalize": "0.1.1" // Used to be: "globalize": "^1.1.1" ... } ... }

+2

Have you tried going to the release tab in a globalize github project? You can cross-reference the globalize and jQueryUI release dates and make the best guesses out of them.

0
source

Source: https://habr.com/ru/post/1533228/


All Articles