custom.js 409 B

1234567891011121314
  1. $(document).ready(function() {
  2. $('.btn-group').button();
  3. $('[data-toggle="tooltip"]').tooltip();
  4. $('.fileinput').click(function() {
  5. var realinputid = '#' + $(this).attr('id').replace(/_chooser.*/, '');
  6. $(realinputid).click();
  7. });
  8. $('input[type="file"]').change(function() {
  9. var choosertxtid = '#' + $(this).attr('id') + '_choosertxt';
  10. $(choosertxtid).val($(this).val());
  11. });
  12. });