replace all window.prompt() with kiri.ui.prompt() for electron. open electron links in os browser
This commit is contained in:
parent
4d81932f38
commit
995b338946
6 changed files with 86 additions and 56 deletions
|
|
@ -1688,12 +1688,13 @@ function createPopOp(type, map) {
|
|||
const { divid, noteid } = op.note;
|
||||
const div = $(divid);
|
||||
if (div) div.onclick = () => {
|
||||
let note = op.x = prompt('Edit Note for Operation', poppedRec.note || '');
|
||||
if (note !== undefined && note !== null) {
|
||||
$(noteid).innerText = poppedRec.note = note;
|
||||
API.conf.save();
|
||||
}
|
||||
func.opRender();
|
||||
API.uc.prompt('Edit Note for Operation', poppedRec.note || '').then(note => {
|
||||
if (note !== undefined && note !== null) {
|
||||
poppedRec.note = op.x = note;
|
||||
API.conf.save();
|
||||
}
|
||||
func.opRender();
|
||||
});
|
||||
};
|
||||
const note = $(noteid);
|
||||
if (note) note.innerText = poppedRec.note || '';
|
||||
|
|
|
|||
Loading…
Reference in a new issue