mirror of
https://github.com/TangentFoxy/memex.git
synced 2024-11-22 04:54:23 +00:00
Add close add-entry panel on entered.
This commit is contained in:
parent
d024cc4b9a
commit
246618d0d5
@ -99,6 +99,8 @@ if (window.showAdd != undefined && window.showAdd)
|
|||||||
content = content.replace(/ /g, ' '); // replace tabs/spaces
|
content = content.replace(/ /g, ' '); // replace tabs/spaces
|
||||||
// var content = content.replace(/\u00a0/g, ' ');
|
// var content = content.replace(/\u00a0/g, ' ');
|
||||||
ipcRenderer.send('write', "\r\n" + "\r\n" + content);
|
ipcRenderer.send('write', "\r\n" + "\r\n" + content);
|
||||||
|
this.setOverlay(false);
|
||||||
|
this.clearForm();
|
||||||
});
|
});
|
||||||
|
|
||||||
for (var i = 0; i < this.keys.length; i++)
|
for (var i = 0; i < this.keys.length; i++)
|
||||||
@ -115,6 +117,14 @@ if (window.showAdd != undefined && window.showAdd)
|
|||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.clearForm = function()
|
||||||
|
{
|
||||||
|
for (var i = 0; i < this.keys.length; i++)
|
||||||
|
{
|
||||||
|
this.elementList[this.keys[i]].elem.value = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.setupElement = function(key, desc, type)
|
this.setupElement = function(key, desc, type)
|
||||||
{
|
{
|
||||||
this.elementList[key] = { key: key, desc: desc, type: type, added: false};
|
this.elementList[key] = { key: key, desc: desc, type: type, added: false};
|
||||||
|
Loading…
Reference in New Issue
Block a user