* Adjust code format

This commit is contained in:
zenggang
2021-08-03 15:53:34 +08:00
parent 477e380687
commit aad5ceb176
+4 -3
View File
@@ -15,13 +15,14 @@ $(function()
{
changed = confirm(data.message);
if(changed)
{
{
/* Select change to the new program products. */
var lastProductSelect = $('#productsBox .input-group:last select:first');
if($(lastProductSelect).val() == 0) {
if($(lastProductSelect).val() == 0)
{
var lastProductSelectID = $(lastProductSelect).attr("id");
var lastProductSelectName = $(lastProductSelect).attr("name");
$('#'+lastProductSelectID+'_chosen').remove();
$('#' + lastProductSelectID + '_chosen').remove();
$(lastProductSelect).replaceWith(data.newProducts);
$('#productsBox .input-group:last select:first').attr('name', lastProductSelectName).attr('id', lastProductSelectID).chosen();
}