Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a id="<?php echo $row["kategori_id"];?>" class="btn btn-danger" href="#<?php echo $row["kategori_id"];?>" data-url="<?php echo URL;?>/admin/index.php?git=kategori_sil&id=<?php echo $row["kategori_id"];?>"><em class="fa fa-trash"></em></a>
- $(".sil").on('click',function(){
- var sil_id=$(this).attr("id");
- var sil_url=$(this).data("url");
- bootbox.prompt({
- animate: false,
- size: 'small',
- title:'<b>'+sil_id+'</b> idsine sahip kayıt silinsin mi?',
- message: '<b>'+sil_id+'</b> idsine sahip kayıt silinsin mi?',
- callback: function(result){
- if (result === null||result === ''){
- return;
- }else{
- $.ajax({
- type: 'GET',
- timeout: 180000,
- url: sil_url,
- error: function(){alert("Bir hata meydana geldi")},
- success: function(html){
- //silme başarılıysa bişiler yaptır
- }
- })
- }
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement