Created
July 10, 2016 16:24
-
-
Save jackfruh/cfe1024c8a9cf92923bc500494bc9b95 to your computer and use it in GitHub Desktop.
This file contains 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
$(document).ready(function () { | |
//register a click handler | |
$('#Button1').click(function() { | |
$.ajax("/admin/import/fuel/deleteStageData", { | |
success: function (data) { | |
$('#importresults').DataTable().ajax.reload(); | |
ResetPanelsForNoData(); | |
}, | |
error: function () { | |
alert('error purging data, please refresh the page'); | |
} | |
}); | |
}); | |
$('#Button2').click(function() { | |
$.ajax("/admin/import/fuel/deleteStageData", { | |
success: function (data) { | |
$('#importresults').DataTable().ajax.reload(); | |
ResetPanelsForNoData(); | |
}, | |
error: function () { | |
alert('error purging data, please refresh the page'); | |
} | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment