Last active
December 11, 2015 02:28
-
-
Save maxwellnewage/4530297 to your computer and use it in GitHub Desktop.
borra entradas mediante jquery ui dialog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$().ready(function () { | |
$("a.borrar").live('click', function (e) { | |
e.preventDefault(); | |
tag_camp = $(this).parent("h3").parent(".info_suc_config"); | |
$("#dialog-confirm").dialog({ | |
resizable: true, | |
height: 140, | |
modal: true, | |
show: "slow", | |
title: "Desea borrar la entrada?", | |
buttons: { | |
"Borrar Entrada": function () { | |
$(tag_camp).remove(); | |
$(this).dialog("close"); | |
}, | |
"Cancelar": function () { | |
$(this).dialog("close"); | |
} | |
} | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment