Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
pix committed May 16, 2020
2 parents b6fc8a1 + 0650576 commit 81000b1
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 12 deletions.
2 changes: 1 addition & 1 deletion paper_admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ class MyModelAdmin(SortableAdminMixin, admin.ModelAdmin):
"""
default_app_config = 'paper_admin.apps.Config'
__version__ = "0.0.12"
__version__ = "0.0.13"
2 changes: 1 addition & 1 deletion paper_admin/static/paper_admin/dist/app.bundle.min.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion paper_admin/static/paper_admin/src/js/components/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,19 @@ function protectEditForm() {

form.addEventListener('change', function(event) {
const target = event.target;
if ((target.tagName === 'INPUT') && !target.closest(`.${CHECKBOX_CLASS}`)) {
if (target.tagName === 'INPUT') {
if (target.closest(`.${CHECKBOX_CLASS}`) || (target.id === TOGGLE_ALL_ID)) {
// nothing
} else {
list_editable_changed = true;
}
} else if (target.tagName === 'SELECT') {
if (target.closest(`.action-action`)) {
// nothing
} else {
list_editable_changed = true;
}
} else {
list_editable_changed = true;
}
});
Expand Down

0 comments on commit 81000b1

Please sign in to comment.