1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

use shared globalize

This commit is contained in:
Luke Pulverenti 2016-03-05 13:51:19 -05:00
parent 3aefabc66b
commit ec65069323
29 changed files with 390 additions and 274 deletions

View file

@ -65,6 +65,17 @@ Custom property | Description | Default
}
},
/**
* This overrides the update function in PaperInputAddonBehavior.
* @param {{
* inputElement: (Element|undefined),
* value: (string|undefined),
* invalid: boolean
* }} state -
* inputElement: The input element.
* value: The input value.
* invalid: True if the input value is invalid.
*/
update: function(state) {
if (!state.inputElement) {
return;
@ -72,7 +83,7 @@ Custom property | Description | Default
state.value = state.value || '';
var counter = state.value.length;
var counter = state.value.length.toString();
if (state.inputElement.hasAttribute('maxlength')) {
counter += '/' + state.inputElement.getAttribute('maxlength');