Skip to content

Commit

Permalink
[added] selectlist selectAll() method
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Oct 18, 2015
1 parent eef06c9 commit 8172eaa
Show file tree
Hide file tree
Showing 19 changed files with 9,220 additions and 66 deletions.
1 change: 1 addition & 0 deletions dist/css/react-widgets.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions dist/react-widgets-globalize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*! (c) 2015 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */
var ReactWidgetLocalizer =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
Expand Down Expand Up @@ -140,7 +139,11 @@ var ReactWidgetLocalizer =
},

format: function format(value, _format2, culture) {
return value == null ? value : locale(culture).formatNumber(value, _format2);
if (value == null) return value;

if (_format2 && _format2.currency) return locale(culture).formatCurrency(value, _format2.currency, _format2);

return locale(culture).formatNumber(value, _format2);
},

precision: function precision(format) {
Expand All @@ -165,10 +168,8 @@ var ReactWidgetLocalizer =
function shortDay(dayOfTheWeek) {
var culture = getCulture(arguments[1]),
name = culture.name,
start = firstOfWeek(culture),
days = function days() {
var days = culture.calendar.days.namesShort.slice();
return start === 0 ? days : days.concat(days.splice(0, start));
return culture.calendar.days.namesShort.slice();
};

var names = shortNames[name] || (shortNames[name] = days());
Expand Down
3 changes: 1 addition & 2 deletions dist/react-widgets-moment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*! (c) 2015 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */
var ReactWidgetLocalizer =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
Expand Down Expand Up @@ -112,7 +111,7 @@ var ReactWidgetLocalizer =
},

format: function format(value, _format, culture) {
return getMoment(culture, value, _format).format(_format);
return getMoment(culture, value).format(_format);
}
};

Expand Down
1 change: 0 additions & 1 deletion dist/react-widgets-simple-number.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*! (c) 2015 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */
var ReactWidgetLocalizer =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
Expand Down
Loading

0 comments on commit 8172eaa

Please sign in to comment.