Subversion Repositories SmartDukaan

Rev

Rev 34546 | Rev 34575 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34546 Rev 34568
Line 123... Line 123...
123
            alert("Published successfully!");
123
            alert("Published successfully!");
124
        } else {
124
        } else {
125
            alert("Something went wrong!");
125
            alert("Something went wrong!");
126
        }
126
        }
127
    });
127
    });
-
 
128
});
-
 
129
 
-
 
130
$(document).on('click','.veiw-bids', function () {
-
 
131
    const mediaId = $('#mediaId').val();
-
 
132
    const liquidationIds = $('.selectLiquidations:checked').map(function() { return $(this).val();}).get().join(',');
-
 
133
    doAjaxRequestWithJsonHandler(context + "/liquidation/publish", "POST", JSON.stringify({'mediaId': mediaId,'liquidationIds':liquidationIds}), (response) => {
-
 
134
        if (response) {
-
 
135
            $('.liquidation-list').trigger('click');
-
 
136
            $('#publishLiquidationModal').modal('hide');
-
 
137
            alert("Published successfully!");
-
 
138
        } else {
-
 
139
            alert("Something went wrong!");
-
 
140
        }
-
 
141
    });
128
});
142
});
129
143