mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #28956 -- Removed usage of jQuery's deprecated .selector property in admin JavaScript.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user