From 3ca0815c0b4ddf7dd1fe74839e2c3e8633c3ea31 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Thu, 21 Nov 2013 21:33:35 +0100 Subject: [PATCH] Fixed #21445 -- Clean up misuse of null in quickElement. Thanks to trac user parsch for the report. --- .../admin/static/admin/js/SelectFilter2.js | 10 +++++----- .../static/admin/js/admin/DateTimeShortcuts.js | 18 +++++++++--------- django/contrib/admin/static/admin/js/core.js | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/django/contrib/admin/static/admin/js/SelectFilter2.js b/django/contrib/admin/static/admin/js/SelectFilter2.js index 24d88f7cc8..d9f6aad39b 100644 --- a/django/contrib/admin/static/admin/js/SelectFilter2.js +++ b/django/contrib/admin/static/admin/js/SelectFilter2.js @@ -40,7 +40,7 @@ window.SelectFilter = { selector_div.className = is_stacked ? 'selector stacked' : 'selector'; //
- var selector_available = quickElement('div', selector_div, ''); + var selector_available = quickElement('div', selector_div); selector_available.className = 'selector-available'; var title_available = quickElement('h2', selector_available, interpolate(gettext('Available %s') + ' ', [field_name])); quickElement('img', title_available, '', 'src', admin_static_prefix + 'img/icon-unknown.gif', 'width', '10', 'height', '10', 'class', 'help help-tooltip', 'title', interpolate(gettext('This is the list of available %s. You may choose some by selecting them in the box below and then clicking the "Choose" arrow between the two boxes.'), [field_name])); @@ -62,15 +62,15 @@ window.SelectFilter = { choose_all.className = 'selector-chooseall'; //