marquex
2016-07-14 f467a26d482ac27d6e2f610595fe4e38e76b92e3
Merge branch 'g-gray-master'
2 files modified
14 ■■■■ changed files
src/MonthsView.js 10 ●●●●● patch | view | raw | blame | history
tests/datetime-spec.js 4 ●●●● patch | view | raw | blame | history
src/MonthsView.js
@@ -58,8 +58,16 @@
    },
    renderMonth: function( props, month, year, selectedDate ) {
        return DOM.td( props, this.props.viewDate.localeData()._monthsShort[ month ] );
        var monthsShort = this.props.viewDate.localeData()._monthsShort
        return DOM.td( props, monthsShort.standalone
            ? capitalize( monthsShort.standalone[ month ] )
            : monthsShort[ month ]
        )
    }
});
function capitalize(str) {
    return str.charAt(0).toUpperCase() + str.slice(1)
}
module.exports = DateTimePickerMonths;
tests/datetime-spec.js
@@ -533,7 +533,7 @@
            assert.notEqual( dt.hour().innerHTML, 2 );
            assert.notEqual( dt.hour().innerHTML, 3 );
            done();
        }, 700 );
        }, 920 );
    });
    it( 'long decrease time', function( done ){
@@ -546,7 +546,7 @@
            assert.notEqual( dt.hour().innerHTML, 1 );
            assert.notEqual( dt.hour().innerHTML, 0 );
            done();
        }, 700 );
        }, 920 );
    });
    it( 'invalid input value', function( done ){