update
This commit is contained in:
@@ -26,7 +26,7 @@ const displayLabelBlock = (formatterId, displayBlock, min, max) => {
|
||||
if (formatters[formatterId] === undefined) {
|
||||
displayBlock.text(
|
||||
displayBlock.text().replace(
|
||||
/([^\d]*)(?:[\d .,]+)([^\d]+)(?:[\d .,]+)(.*)/,
|
||||
/([^\d]*)(?:[\d\s.,]+)([^\d]+)(?:[\d\s.,]+)(.*)/,
|
||||
`$1${min}$2${max}$3`,
|
||||
),
|
||||
);
|
||||
@@ -45,6 +45,7 @@ const refreshSliders = () => {
|
||||
const $el = $(this);
|
||||
const values = $el.data('slider-values');
|
||||
const specifications = $el.data('slider-specifications');
|
||||
|
||||
if (specifications !== null && specifications !== undefined) {
|
||||
formatters[$el.data('slider-id')] = NumberFormatter.build(specifications);
|
||||
}
|
||||
|
||||
@@ -17,8 +17,9 @@
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
const getQueryParameters = params => params.split('&').map((str) => {
|
||||
const getQueryParameters = (params) => params.split('&').map((str) => {
|
||||
const [key, val] = str.split('=');
|
||||
|
||||
return {
|
||||
name: key,
|
||||
value: decodeURIComponent(val).replace(/\+/g, ' '),
|
||||
|
||||
Reference in New Issue
Block a user