Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7085e13

Browse filesBrowse files
fix: reset pattern form when switching between include/exclude patterns (#417)
Co-authored-by: Filip Christiansen <22807962+filipchristiansen@users.noreply.github.com>
1 parent 5799998 commit 7085e13
Copy full SHA for 7085e13

File tree

Expand file treeCollapse file tree

1 file changed

+9
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-2
lines changed
Open diff view settings
Collapse file

‎src/static/js/git_form.js‎

Copy file name to clipboardExpand all lines: src/static/js/git_form.js
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,16 @@ function changePattern() {
88

99
// Skip the first tree line element
1010
treeLineElements.slice(2).forEach((element) => {
11-
element.classList.toggle('line-through');
12-
element.classList.toggle('text-gray-500');
11+
element.classList.remove('line-through');
12+
element.classList.remove('text-gray-500');
1313
});
14+
15+
// Reset the pattern input field
16+
const patternInput = document.getElementById('pattern');
17+
18+
if (patternInput) {
19+
patternInput.value = '';
20+
}
1421
}
1522

1623
// Show/hide the Personal-Access-Token section when the "Private repository" checkbox is toggled.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.