Clear PMS selectize when dropdown opens

This commit is contained in:
JonnyWong16 2018-03-25 11:00:58 -07:00
commit d8298a12eb
2 changed files with 6 additions and 0 deletions
data/interfaces/default

View file

@ -1861,6 +1861,9 @@ $(document).ready(function() {
$('#pms_url_manual').prop('checked', false);
$('#pms_url').val('Please verify your server above to retrieve the URL');
PMSCloudCheck();
},
onDropdownOpen: function() {
this.clear();
}
});
var select_pms = $select_pms[0].selectize;

View file

@ -374,6 +374,9 @@ $(document).ready(function() {
$('#pms_is_remote_checkbox').prop('disabled', false);
$('#pms_ssl_checkbox').prop('disabled', false);
}
},
onDropdownOpen: function() {
this.clear();
}
});
var select_pms = $select_pms[0].selectize;