title: How do I create a delete button on every row in slickgrid with confirmation?
body: <p>As the title said it, how do I do it?, I am using this button created by jiri:</p>
  
  <p><a href="https://stackoverflow.com/questions/9784400/how-do-I-create-a-delete-button-on-every-row-using-the-slickgrid-plugin?answertab=votes#tab-top">How do i create a delete button on every row using the SlickGrid plugin?</a></p>
  
  <p>when I add an if(confirmation(msg)) inside the function it repeats me the msg ALOT 
  maybe its because i refresh-ajax the table with each modification.</p>
  
  <p>ask me if you need more info, I am still noob here in stackoverflow :P
  (also if there is someway to "kill" the function)</p>
  
  <p>here is the button, iam using(link) i added the idBorrada to check whetever the id was already deleted and dont try to delete it twice, also here is a confirm, but when i touch cancel it asks me again.</p>
  
  <p><code>$('.del').live('click', function(){
        var me = $(this), id = me.attr('id');
        //assuming you have used a dataView to create your grid
        //also assuming that its variable name is called 'dataView'
        //use the following code to get the item to be deleted from it
        if(idBorrada != id &amp;&amp; confirm("¿Seguro desea eleminarlo?")){
            dataView.deleteItem(id);
            Wicket.Ajax.ajax({"u":"${url}","c":"${gridId}","ep":{'borrar':JSON.stringify(id, null, 2)}});
        //This is possible because in the formatter we have assigned the row id itself as the button id;
        //now assuming your grid is called 'grid'
            //TODO
            grid.invalidate();
            idBorrada= id;
        }
        else{
        };
    });</code></p>
  
  <p>and i call the entire function again.
  hope that help, sorry for the grammar its not my native language</p>