mirror of
https://github.com/zadam/trilium.git
synced 2025-02-23 22:44:44 +08:00
bug fixes
This commit is contained in:
parent
a36022d8c1
commit
e9bfe4521e
5 changed files with 1176 additions and 45 deletions
1205
package-lock.json
generated
1205
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -80,9 +80,9 @@
|
|||
"electron-builder": "22.7.0",
|
||||
"electron-packager": "15.0.0",
|
||||
"electron-rebuild": "1.11.0",
|
||||
"esm": "^3.2.25",
|
||||
"jasmine": "^3.5.0",
|
||||
"jsdoc": "3.6.4",
|
||||
"esm": "3.2.25",
|
||||
"jasmine": "3.6.0",
|
||||
"jsdoc": "3.6.5",
|
||||
"lorem-ipsum": "2.0.3",
|
||||
"webpack": "5.0.0-beta.22",
|
||||
"webpack-cli": "4.0.0-beta.8"
|
||||
|
|
|
@ -158,10 +158,9 @@ $(document).on('mousedown', '.note-detail-text a:not(.reference-link)', function
|
|||
}
|
||||
});
|
||||
|
||||
$(document).on('mousedown', 'a.reference-link', goToLink);
|
||||
$(document).on('mousedown', '.note-detail-book a', goToLink);
|
||||
$(document).on('mousedown', '.note-detail-render a', goToLink);
|
||||
$(document).on('mousedown', '.note-detail-text a.reference-link', goToLink);
|
||||
$(document).on('mousedown', '.note-detail-readonly-text a.reference-link', goToLink);
|
||||
$(document).on('mousedown', '.note-detail-readonly-text a', goToLink);
|
||||
$(document).on('mousedown', 'a.ck-link-actions__preview', goToLink);
|
||||
$(document).on('click', 'section.include-note a', goToLink);
|
||||
|
@ -173,6 +172,7 @@ $(document).on('click', 'a.ck-link-actions__preview', e => {
|
|||
$(document).on('contextmenu', 'a.ck-link-actions__preview', linkContextMenu);
|
||||
$(document).on('contextmenu', '.note-detail-text a', linkContextMenu);
|
||||
$(document).on('contextmenu', '.note-detail-readonly-text a', linkContextMenu);
|
||||
$(document).on('contextmenu', 'a.reference-link', linkContextMenu);
|
||||
$(document).on('contextmenu', "a[data-action='note']", linkContextMenu);
|
||||
$(document).on('contextmenu', ".note-detail-render a", linkContextMenu);
|
||||
$(document).on('contextmenu', ".note-paths-widget a", linkContextMenu);
|
||||
|
|
|
@ -54,4 +54,4 @@ class Options {
|
|||
|
||||
const options = new Options();
|
||||
|
||||
export default options;
|
||||
export default options;
|
||||
|
|
|
@ -39,6 +39,10 @@ function getOptionBool(name) {
|
|||
function setOption(name, value) {
|
||||
const option = require('./repository').getOption(name);
|
||||
|
||||
if (value === true || value === false) {
|
||||
value = value.toString();
|
||||
}
|
||||
|
||||
if (option) {
|
||||
option.value = value;
|
||||
|
||||
|
|
Loading…
Reference in a new issue