1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-08-02 11:30:22 +02:00

fix date in new item title. fixes #58

This commit is contained in:
Kushagra Gour
2017-01-29 17:53:04 +05:30
parent fa409ef5dd
commit 7aa764cea0

View File

@@ -312,7 +312,7 @@ settingsBtn, onboardModal, notificationsBtn, onboardShowInTabOptionBtn, onboardD
function createNewItem() {
var d = new Date();
currentItem = {
title: 'Untitled ' + d.getDate() + '-' + d.getMonth() + '-' + d.getHours() + ':' + d.getMinutes(),
title: 'Untitled ' + d.getDate() + '-' + (d.getMonth() + 1) + '-' + d.getHours() + ':' + d.getMinutes(),
html: '',
css: '',
js: '',