<commit_before><!-- browse server input -->
  <div class="form-group">
    <label>{{ $field['label'] }}</label>
	<input
		type="text"
		class="form-control"
		id="{{ $field['name'] }}-filemanager"

		@foreach ($field as $attribute => $value)
			@if (is_string($attribute) && is_string($value))
			{{ $attribute }}="{{ $value }}"
			@endif
		@endforeach
		readonly
	>

	<div class="btn-group" role="group" aria-label="..." style="margin-top: 3px;">
	  <button type="button" data-inputid="{{ $field['name'] }}-filemanager" class="btn btn-default popup_selector">
		<i class="fa fa-cloud-upload"></i> Browse uploads</button>
		<button type="button" data-inputid="{{ $field['name'] }}-filemanager" class="btn btn-default clear_elfinder_picker">
		<i class="fa fa-eraser"></i> Clear</button>
	</div>

  </div>

{{-- ########################################## --}}
{{-- Extra CSS and JS for this particular field --}}
{{-- If a field type is shown multiple times on a form, the CSS and JS will only be loaded once --}}
@if ($crud->checkIfFieldIsFirstOfItsType($field, $fields))

	{{-- FIELD CSS - will be loaded in the after_styles section --}}
	@push('crud_fields_styles')
		<!-- include browse server css -->
		<link href="{{ asset('vendor/backpack/colorbox/example2/colorbox.css') }}" rel="stylesheet" type="text/css" />
	@endpush

	{{-- FIELD JS - will be loaded in the after_scripts section --}}
	@push('crud_fields_scripts')
		<!-- include browse server js -->
		<script src="{{ asset('vendor/backpack/colorbox/jquery.colorbox-min.js') }}"></script>
		<script src="{{ asset('vendor/backpack/elfinder/standalonepopup.js') }}"></script>

		<script>
			$(document).on('click','.clear_elfinder_picker',function (event) {
			    event.preventDefault();
			    var updateID = $(this).attr('data-inputid'); // Btn id clicked
			    $("#"+updateID).val("");
			});
		</script>
	@endpush

@endif
{{-- End of Extra CSS and JS --}}<commit_msg>removed standalonepopup.js, which is now unused because the js is inline in browse.blade.php<commit_after><!-- browse server input -->
  <div class="form-group">
    <label>{{ $field['label'] }}</label>
	<input
		type="text"
		class="form-control"
		id="{{ $field['name'] }}-filemanager"

		@foreach ($field as $attribute => $value)
			@if (is_string($attribute) && is_string($value))
			{{ $attribute }}="{{ $value }}"
			@endif
		@endforeach
		readonly
	>

	<div class="btn-group" role="group" aria-label="..." style="margin-top: 3px;">
	  <button type="button" data-inputid="{{ $field['name'] }}-filemanager" class="btn btn-default popup_selector">
		<i class="fa fa-cloud-upload"></i> Browse uploads</button>
		<button type="button" data-inputid="{{ $field['name'] }}-filemanager" class="btn btn-default clear_elfinder_picker">
		<i class="fa fa-eraser"></i> Clear</button>
	</div>

	@if (isset($field['hint']))
        <p class="help-block">{{ $field['hint'] }}</p>
    @endif

  </div>

{{-- ########################################## --}}
{{-- Extra CSS and JS for this particular field --}}
{{-- If a field type is shown multiple times on a form, the CSS and JS will only be loaded once --}}
@if ($crud->checkIfFieldIsFirstOfItsType($field, $fields))

	{{-- FIELD CSS - will be loaded in the after_styles section --}}
	@push('crud_fields_styles')
		<!-- include browse server css -->
		<link href="{{ asset('vendor/backpack/colorbox/example2/colorbox.css') }}" rel="stylesheet" type="text/css" />
	@endpush

	{{-- FIELD JS - will be loaded in the after_scripts section --}}
	@push('crud_fields_scripts')
		<!-- include browse server js -->
		<script src="{{ asset('vendor/backpack/colorbox/jquery.colorbox-min.js') }}"></script>
		<script src="{{ asset('vendor/backpack/elfinder/standalonepopup.js') }}"></script>

		<script>
			$(document).on('click','.clear_elfinder_picker',function (event) {
			    event.preventDefault();
			    var updateID = $(this).attr('data-inputid'); // Btn id clicked
			    $("#"+updateID).val("");
			});
		</script>
	@endpush

@endif
{{-- End of Extra CSS and JS --}}
{'fraction_non_alphanumeric': 0.22456053478583807, 'fraction_numerical': 0.0009903441445902451, 'mean_word_length': 4.133418043202033, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7579047', 'n_tokens_mistral': 1382, 'n_tokens_neox': 1281, 'n_words': 327}