Sha256: a0fc361362b408ef2814af3587a8fa9e45d0c068951800765d80143e63891f13

Contents?: true

Size: 240 Bytes

Versions: 87

Compression:

Stored size: 240 Bytes

Contents

// This populates the label inside/below custom file inputs with
// the file name that was selected.
$(document).on('change', '.custom-file-input', function(event) {
  $(this).next('.custom-file-label').html(event.target.files[0].name);
});

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
nfg_ui-0.11.16 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.15 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.14 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.13 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.12 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.11.1 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.11 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.10 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.9 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.8 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.7 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.6 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.5 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.4 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.3 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.2 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.1.1 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.1 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.11.0 app/assets/javascripts/nfg_ui/file_inputs.js
nfg_ui-0.10.15.1 app/assets/javascripts/nfg_ui/file_inputs.js