mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Reset assigned_x values when changing check out to type
This commit is contained in:
parent
11208ee064
commit
74c7f106ce
|
@ -454,12 +454,18 @@ $(document).ready(function () {
|
|||
$('#assigned_location').hide();
|
||||
$('.notification-callout').fadeOut();
|
||||
|
||||
$('[name="assigned_location"]').val('').trigger('change.select2');
|
||||
$('[name="assigned_user"]').val('').trigger('change.select2');
|
||||
|
||||
} else if (assignto_type == 'location') {
|
||||
$('#current_assets_box').fadeOut();
|
||||
$('#assigned_asset').hide();
|
||||
$('#assigned_user').hide();
|
||||
$('#assigned_location').show();
|
||||
$('.notification-callout').fadeOut();
|
||||
|
||||
$('[name="assigned_asset"]').val('').trigger('change.select2');
|
||||
$('[name="assigned_user"]').val('').trigger('change.select2');
|
||||
} else {
|
||||
|
||||
$('#assigned_asset').hide();
|
||||
|
@ -470,6 +476,8 @@ $(document).ready(function () {
|
|||
}
|
||||
$('.notification-callout').fadeIn();
|
||||
|
||||
$('[name="assigned_asset"]').val('').trigger('change.select2');
|
||||
$('[name="assigned_location"]').val('').trigger('change.select2');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue