mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-28 19:26:09 +01:00
This commit is contained in:
parent
b8eec1bd34
commit
0c04941edc
3 changed files with 3 additions and 2 deletions
|
|
@ -13,6 +13,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {setStorageVal} from "../../protyle/util/compatibility";
|
||||
const DEFAULT_VIEW_HISTORY_CACHE_SIZE = 20;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ export const saveCriterion = (config: ISearchOption,
|
|||
saveDialog.destroy();
|
||||
});
|
||||
btnsElement[1].addEventListener("click", () => {
|
||||
const value = saveDialog.element.querySelector("input").value;
|
||||
const value = saveDialog.element.querySelector("input").value.trim();
|
||||
if (!value) {
|
||||
showMessage(window.siyuan.languages["_kernel"]["142"]);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -409,7 +409,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo
|
|||
event.preventDefault();
|
||||
break;
|
||||
} else if (target.classList.contains("b3-chip__close") && type === "remove-criteria") {
|
||||
const name = target.parentElement.innerText.trim();
|
||||
const name = target.parentElement.innerText;
|
||||
fetchPost("/api/storage/removeCriterion", {name});
|
||||
criteriaData.find((item, index) => {
|
||||
if (item.name === name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue