Skip to content

Commit

Permalink
1.25.1.0 manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
shogenapps committed Jan 1, 2025
1 parent f018231 commit b75f5b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/features/space_watchlist_sorter/space_watchlist_sorter.js
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,8 @@ shouldInitializeFeature("spaceWatchlistSorter").then((result) => {
}
});
$(document).on("dblclick", ".spaceWatchlistSorter-tab", function (event) {
event.stopPropagation(); // Prevent event propagation

const $tab = $(this);
const currentText = $tab.text().trim();
$tab.prop("contenteditable", true).trigger("focus");
Expand All @@ -922,6 +924,13 @@ shouldInitializeFeature("spaceWatchlistSorter").then((result) => {
$tab.trigger("blur");
}
});

// Ensure all text is selected when double-clicked
const range = document.createRange();
const selection = window.getSelection();
range.selectNodeContents($tab[0]);
selection.removeAllRanges();
selection.addRange(range);
});
$(document).on("click", ".sort-alphabetically-button", function () {
const folderId = $(this).data("folder-id");
Expand Down
2 changes: 1 addition & 1 deletion src/manifest/manifest-chrome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "WikiTree Browser Extension (Preview)",
"description": "The official WikiTree browser extension.",
"version": "1.25.0.3",
"version": "1.25.1.0",
"manifest_version": 3,
"options_page": "options.html",
"permissions": ["storage", "clipboardRead", "clipboardWrite", "contextMenus", "activeTab"],
Expand Down
2 changes: 1 addition & 1 deletion src/manifest/manifest-firefox.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "WikiTree Browser Extension (Preview)",
"description": "The official WikiTree browser extension.",
"version": "1.25.0.3",
"version": "1.25.1.0",
"manifest_version": 2,
"options_ui": {
"page": "options.html",
Expand Down

0 comments on commit b75f5b9

Please sign in to comment.