diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-06-24 11:13:51 +0200 |
|---|---|---|
| committer | Carlton Gibson <carlton@noumenal.es> | 2020-06-24 11:54:48 +0200 |
| commit | 30e59705fc3e3e9e8370b965af794ad6173bf92b (patch) | |
| tree | f27b2e4c3b271ab38eeb3ef30c0cdc1515178c80 /js_tests | |
| parent | 074844e9479a9ee1420685b36189aa2881289993 (diff) | |
Fixed #31523 -- Removed jQuery dependency from actions.js.
Diffstat (limited to 'js_tests')
| -rw-r--r-- | js_tests/admin/actions.test.js | 2 | ||||
| -rw-r--r-- | js_tests/tests.html | 29 |
2 files changed, 18 insertions, 13 deletions
diff --git a/js_tests/admin/actions.test.js b/js_tests/admin/actions.test.js index b2eb3c25d8..0077dd6ff3 100644 --- a/js_tests/admin/actions.test.js +++ b/js_tests/admin/actions.test.js @@ -11,7 +11,7 @@ QUnit.module('admin.actions', { const $ = django.jQuery; $('#qunit-fixture').append($('#result-table').text()); - $('tr input.action-select').actions(); + Actions(document.querySelectorAll('tr input.action-select')); } }); diff --git a/js_tests/tests.html b/js_tests/tests.html index c247abc755..72a6eb4fcb 100644 --- a/js_tests/tests.html +++ b/js_tests/tests.html @@ -11,18 +11,23 @@ <div id="qunit-fixture"> </div> <script type="text/html" id="result-table"> - <table id="result_list"> - <tr> - <th> - <input type="checkbox" id="action-toggle"> - </th> - </tr> - <tr> - <td class="action-checkbox"> - <input class="action-select" type="checkbox" value="618"> - </td> - </tr> - </table> + <form id="changelist-form"> + <button type="submit" class="button" name="index" value="0">Go</button> + <span class="action-counter" data-actions-icnt="100"></span> + <table id="result_list"> + <tr> + <th> + <input type="checkbox" id="action-toggle"> + </th> + </tr> + <tr> + <td class="action-checkbox"> + <input class="action-select" type="checkbox" value="618"> + </td> + </tr> + </table> + <input type="submit" name="_save" value="Save"> + </form> </script> <script type="text/html" id="tabular-formset"> <input id="id_first-TOTAL_FORMS" value="1"> |
