mirror of
https://github.com/chinchang/web-maker.git
synced 2025-08-02 19:37:29 +02:00
fix date in new item title. fixes #58
This commit is contained in:
@@ -312,7 +312,7 @@ settingsBtn, onboardModal, notificationsBtn, onboardShowInTabOptionBtn, onboardD
|
|||||||
function createNewItem() {
|
function createNewItem() {
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
currentItem = {
|
currentItem = {
|
||||||
title: 'Untitled ' + d.getDate() + '-' + d.getMonth() + '-' + d.getHours() + ':' + d.getMinutes(),
|
title: 'Untitled ' + d.getDate() + '-' + (d.getMonth() + 1) + '-' + d.getHours() + ':' + d.getMinutes(),
|
||||||
html: '',
|
html: '',
|
||||||
css: '',
|
css: '',
|
||||||
js: '',
|
js: '',
|
||||||
|
Reference in New Issue
Block a user