git-watchtower 1.10.7 → 1.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/server/web-ui/js.js
CHANGED
|
@@ -1241,10 +1241,12 @@ ${pureFnBlock}
|
|
|
1241
1241
|
});
|
|
1242
1242
|
|
|
1243
1243
|
// Search input handler
|
|
1244
|
+
let _searchDebounce = null;
|
|
1244
1245
|
document.getElementById('search-input').addEventListener('input', (e) => {
|
|
1245
1246
|
ui.searchQuery = e.target.value;
|
|
1246
1247
|
ui.selectedIndex = 0;
|
|
1247
|
-
|
|
1248
|
+
clearTimeout(_searchDebounce);
|
|
1249
|
+
_searchDebounce = setTimeout(() => renderBranches(), 80);
|
|
1248
1250
|
});
|
|
1249
1251
|
|
|
1250
1252
|
function moveSelection(delta) {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
function escHtml(s) {
|
|
20
20
|
if (!s) return '';
|
|
21
|
-
return String(s).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"');
|
|
21
|
+
return String(s).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|