1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #28956 -- Removed usage of jQuery's deprecated .selector property in admin JavaScript.

This commit is contained in:
Tim Graham
2017-12-21 14:26:54 -05:00
parent 8dbaeb6138
commit b730973fff
3 changed files with 24 additions and 21 deletions

View File

@@ -11,7 +11,7 @@ QUnit.module('admin.inlines: tabular formsets', {
$('#qunit-fixture').append($('#tabular-formset').text());
this.table = $('table.inline');
this.inlineRow = this.table.find('tr');
that.inlineRow.tabularFormset({
that.inlineRow.tabularFormset('table.inline tr', {
prefix: 'first',
addText: that.addText,
deleteText: 'Remove'
@@ -60,7 +60,7 @@ QUnit.test('existing add button', function(assert) {
this.inlineRow = this.table.find('tr');
this.table.append('<i class="add-button"></i>');
var addButton = this.table.find('.add-button');
this.inlineRow.tabularFormset({
this.inlineRow.tabularFormset('table.inline tr', {
prefix: 'first',
deleteText: 'Remove',
addButton: addButton