Removed iCheck code from merge users script

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-04-12 06:30:52 -07:00
parent d3d464e179
commit 89b031d64d

View file

@ -110,7 +110,7 @@
</div> <!--/box-body-->
<div class="box-footer text-right">
<a class="btn btn-link pull-left" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a>
<button type="submit" class="btn btn-success"{{ (config('app.lock_passwords') ? ' disabled' : '') }} disabled="disabled"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('button.submit') }}</button>
<button type="submit" class="btn btn-success"{{ (config('app.lock_passwords') ? ' disabled' : '') }} disabled><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('button.submit') }}</button>
</div><!-- /.box-footer -->
@foreach ($users as $user)
@ -132,10 +132,16 @@
$('button[type="submit"]').prop("disabled", true);
$('input').on('ifChecked', function(event) {
$(' button[type="submit"]').prop("disabled", false);
$("input[type='radio']").click(function () {
if($(this).is(':enabled')) {
$("button[type='submit']").prop("disabled", false);
$("button[type='submit']").removeAttr("disabled");
}
});
</script>
@endif