function showTodos() {
        // FIXME: Get the active month from the Menu UI
        //var now  = moment(new Date()).format('MM-YYYY');
        var now = appconfig.runtime.curMonth;
        db.query(function(doc, emit) {
          if (moment(doc.endDate).format('MM-YYYY') === now) {
            emit(doc);
          }
        },
        {include_docs : true, descending : true },
        function(err, results) { if (!err) redrawTodosUI(results.rows); });
    }
// Show the current list of todos by reading them from the database
Show the current list of todos by reading them from the database
Show the current list of todos by reading them from the database
function showTodos() {
        var now = appconfig.runtime.curMonth;
        db.query(function(doc, emit) {
          if (moment(doc.endDate).format('MM-YYYY') === now) {
            emit(doc);
          }
        },
        {include_docs : true, descending : true },
        function(err, results) { if (!err) redrawTodosUI(results.rows); });
    }
function showTodos ( ) { var now = appconfig . runtime . curMonth ; db . query ( function ( doc , emit ) { if ( moment ( doc . endDate ) . format ( 'MM-YYYY' ) === now ) { emit ( doc ) ; } } , { include_docs : true , descending : true } , function ( err , results ) { if ( ! err ) redrawTodosUI ( results . rows ) ; } ) ; }
Show the current list of todos by reading them from the database
Show the current list of todos by reading them from the database
// FIXME: Get the active month from the Menu UI //var now  = moment(new Date()).format('MM-YYYY');