function movetoCurrent(allTasks,moveId) {
        var now = new Date().getTime();
        allTasks.current.anyCurrent = true;
        allTasks.current.id = allTasks.oldTasks[moveId].id;
        allTasks.current.name = allTasks.oldTasks[moveId].name;
        allTasks.current.date = now;
        allTasks.current.totalSpended = allTasks.oldTasks[moveId].totalSpended;
        chrome.storage.local.set({ 'tasks': allTasks }, function(){
            listTasks();
        });
    }
/**
     * move old task to current
     * @function movetoCurrent
     * @memberof popupjs
     */
move old task to current
@function movetoCurrent
@memberof popupjs
move old task to current @function movetoCurrent @memberof popupjs
function movetoCurrent(allTasks,moveId) {
        var now = new Date().getTime();
        allTasks.current.anyCurrent = true;
        allTasks.current.id = allTasks.oldTasks[moveId].id;
        allTasks.current.name = allTasks.oldTasks[moveId].name;
        allTasks.current.date = now;
        allTasks.current.totalSpended = allTasks.oldTasks[moveId].totalSpended;
        chrome.storage.local.set({ 'tasks': allTasks }, function(){
            listTasks();
        });
    }
function movetoCurrent ( allTasks , moveId ) { var now = new Date ( ) . getTime ( ) ; allTasks . current . anyCurrent = true ; allTasks . current . id = allTasks . oldTasks [ moveId ] . id ; allTasks . current . name = allTasks . oldTasks [ moveId ] . name ; allTasks . current . date = now ; allTasks . current . totalSpended = allTasks . oldTasks [ moveId ] . totalSpended ; chrome . storage . local . set ( { 'tasks' : allTasks } , function ( ) { listTasks ( ) ; } ) ; }
move old task to current
 @function movetoCurrent
 @memberof popupjs
move old task to current @function movetoCurrent @memberof popupjs