
Untitled
By: a guest on
Aug 5th, 2012 | syntax:
None | size: 1.03 KB | hits: 13 | expires: Never
Timed event only executes once
function activateSource(id) {
$("#confirm-activate-" + id).toggle('slow');
$(document).on('click', '.confirm-activate', function (e) {
e.preventDefault();
$.ajax({
type: "POST",
cache: false,
data: {
"source-id": id
},
url: "modules/source/activatesource.php",
success: function (data) {
$("#confirmation-response").html(data);
dismissAlert();
}
})
});
}
function dismissAlert() {
setTimeout(function () {
$("#confirmation-response").hide('blind', function () {
loadSourceContent()
}, 500);
}, 2500);
}
function dismissAlert() {
// Show the response
$("#confirmation-response").show( 'blind', 150 );
// Hide the response with a timeout
setTimeout(function () {
$("#confirmation-response").hide('blind', function () {
loadSourceContent()
}, 500);
}, 2500);
}