mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Merge pull request #12824 from snipe/fixes/radio_button_submit_on_merge_users
Removed iCheck code from merge users script
This commit is contained in:
commit
a119484277
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue