function confirmDelete() {  
    $('.js-resetConfirmation').click(function(){
        var tasks = {
            current: {
                anyCurrent: false
            },
            oldTasks: [],
            lastTaskId: 0
        }
        chrome.storage.local.set({ 'tasks': tasks }, function(){

            $('.js-resetConfirmation, .js-cancelReset').addClass('hidden');
            $('.js-tasksDeleted').removeClass('hidden');

            setTimeout(function(){ 
                var modal = document.getElementById("deleteModal");
                modal.style.display = "none";
                $('.js-resetConfirmation, .js-cancelReset').removeClass('hidden');
                $('.js-tasksDeleted').addClass('hidden');
            }, 2000);
            
        });
    })
   }
/**
    * delete confirmation
    * @function confirmDelete
    * @memberof popupjs
    */
delete confirmation
@function confirmDelete
@memberof popupjs
delete confirmation @function confirmDelete @memberof popupjs
function confirmDelete() {  
    $('.js-resetConfirmation').click(function(){
        var tasks = {
            current: {
                anyCurrent: false
            },
            oldTasks: [],
            lastTaskId: 0
        }
        chrome.storage.local.set({ 'tasks': tasks }, function(){
            $('.js-resetConfirmation, .js-cancelReset').addClass('hidden');
            $('.js-tasksDeleted').removeClass('hidden');
            setTimeout(function(){ 
                var modal = document.getElementById("deleteModal");
                modal.style.display = "none";
                $('.js-resetConfirmation, .js-cancelReset').removeClass('hidden');
                $('.js-tasksDeleted').addClass('hidden');
            }, 2000);
        });
    })
   }
function confirmDelete ( ) { $ ( '.js-resetConfirmation' ) . click ( function ( ) { var tasks = { current : { anyCurrent : false } , oldTasks : [ ] , lastTaskId : 0 } chrome . storage . local . set ( { 'tasks' : tasks } , function ( ) { $ ( '.js-resetConfirmation, .js-cancelReset' ) . addClass ( 'hidden' ) ; $ ( '.js-tasksDeleted' ) . removeClass ( 'hidden' ) ; setTimeout ( function ( ) { var modal = document . getElementById ( "deleteModal" ) ; modal . style . display = "none" ; $ ( '.js-resetConfirmation, .js-cancelReset' ) . removeClass ( 'hidden' ) ; $ ( '.js-tasksDeleted' ) . addClass ( 'hidden' ) ; } , 2000 ) ; } ) ; } ) }
delete confirmation
 @function confirmDelete
 @memberof popupjs
delete confirmation @function confirmDelete @memberof popupjs