Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".delete-btn").on("click", function () {
- event.preventDefault();
- $.ajax({
- url: "delete.php",
- type: "POST",
- data: {answId: answId},
- success: function (data) {
- if (data.length > 0) {
- $.notify({
- // options
- icon: 'glyphicon glyphicon-warning-sign',
- message: data
- },{
- // settings
- type: 'danger'
- });
- }else {
- $(this).closest(".block-smallContainer").closest(".wall-content").closest(".block").hide(100);
- }
- }
- })
- })
- $(".delete-btn").on("click", function () {
- event.preventDefault();
- $.ajax({
- url: "delete.php",
- type: "POST",
- data: {answId: answId},
- success: function (data) {
- if (data.length > 0) {
- $.notify({
- // options
- icon: 'glyphicon glyphicon-warning-sign',
- message: data
- },{
- // settings
- type: 'danger'
- });
- }
- }
- })
- $(this).closest(".block-smallContainer").closest(".wall-content").closest(".block").hide(100);
- })
Add Comment
Please, Sign In to add comment