* Adjust code format
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user