-
Notifications
You must be signed in to change notification settings - Fork 1.1k
1843 new ajax request resets whole view if historypanel is enabled #1872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
elineda
merged 18 commits into
django-commons:main
from
elineda:1843-new-ajax-request-resets-whole-view-if-historypanel-is-enabled
Jan 29, 2024
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
096fdf4
New AJAX request resets whole view if HistoryPanel is enabled
elineda f499e41
New AJAX request resets whole view if HistoryPanel is enabled
elineda 73c96eb
New AJAX request resets whole view if HistoryPanel is enabled
elineda def324a
New AJAX request resets whole view if HistoryPanel is enabled
elineda 150e11b
New AJAX request resets whole view if HistoryPanel is enabled
elineda 0419cd7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c6d3b65
Add ajax in spelling_wordlist.txt
elineda bd2a24e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] d23bbd2
New AJAX request resets whole view if HistoryPanel is enabled
elineda 5c3da4c
Merge remote-tracking branch 'origin/1843-new-ajax-request-resets-who…
elineda 1d2ed26
Merge branch 'main' into 1843-new-ajax-request-resets-whole-view-if-h…
elineda 4cb7900
Documentation suggestions
tim-schilling 20fad64
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 59e6a28
Update for line lengths.
tim-schilling 43a6966
Clean-up Tim's English in the changelog
tim-schilling ba03e9f
New AJAX request resets whole view if HistoryPanel is enabled
elineda 0fa7647
New AJAX request resets whole view if HistoryPanel is enabled
elineda ea556df
New AJAX request resets whole view if HistoryPanel is enabled
elineda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ Pympler | |
| Roboto | ||
| Transifex | ||
| Werkzeug | ||
| ajax | ||
| async | ||
| backend | ||
| backends | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| {% extends "base.html" %} | ||
| {% block content %} | ||
| <div id="click_for_ajax">click for ajax</div> | ||
|
|
||
| <script> | ||
|
|
||
| let click_for_ajax = document.getElementById("click_for_ajax"); | ||
| function send_ajax() { | ||
| let xhr = new XMLHttpRequest(); | ||
| let url = '/json_view/'; | ||
| xhr.open("GET", url, true); | ||
| xhr.onreadystatechange = function () { | ||
| if (this.readyState == 4 && this.status == 200) { | ||
| console.log(this.responseText); | ||
| } | ||
| } | ||
| xhr.send(); | ||
| } | ||
| document.addEventListener("click", (event) => {send_ajax()}); | ||
| </script> | ||
| {% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.