diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-08-10 00:44:48 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-08-10 00:44:48 +0000 |
| commit | 5144a60efce7bc69ea91873c3ac9906c575decb8 (patch) | |
| tree | ac9daddb28ddb8dc0b35f9ab4fdd79dfe58e1c90 | |
| parent | 65f7e142e4fc9672591d4a4c8dbb065fb335d20f (diff) | |
Removed unnecessary code from admin_media/js
git-svn-id: http://code.djangoproject.com/svn/django/trunk@450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/conf/admin_media/js/SelectBox.js | 1 | ||||
| -rw-r--r-- | django/conf/admin_media/js/SelectFilter2.js | 17 |
2 files changed, 1 insertions, 17 deletions
diff --git a/django/conf/admin_media/js/SelectBox.js b/django/conf/admin_media/js/SelectBox.js index 48ec0a5e4b..af8de204cb 100644 --- a/django/conf/admin_media/js/SelectBox.js +++ b/django/conf/admin_media/js/SelectBox.js @@ -51,7 +51,6 @@ var SelectBox = { }, add_to_cache: function(id, option) { SelectBox.cache[id].push({ value: option.value, text: option.text, displayed: 1 }); -// SelectBox.sort(id) // Commented out for performance. Can this be deleted? }, cache_contains: function(id, value) { // Check if an item is contained in the cache diff --git a/django/conf/admin_media/js/SelectFilter2.js b/django/conf/admin_media/js/SelectFilter2.js index 2607a62667..6196f2376c 100644 --- a/django/conf/admin_media/js/SelectFilter2.js +++ b/django/conf/admin_media/js/SelectFilter2.js @@ -3,24 +3,9 @@ SelectFilter2 - Turns a multiple-select box into a filter interface. Different than SelectFilter because this is coupled to the admin framework. -Requires SelectBox.js and addevent.js. +Requires core.js, SelectBox.js and addevent.js. */ -// quickElement(tagType, parentReference, textInChildNode, [, attribute, attributeValue ...]); -function quickElement() { - var obj = document.createElement(arguments[0]); - if (arguments[2] != '' && arguments[2] != null) { - var textNode = document.createTextNode(arguments[2]); - obj.appendChild(textNode); - } - var len = arguments.length; - for (var i = 3; i < len; i += 2) { - obj.setAttribute(arguments[i], arguments[i+1]); - } - arguments[1].appendChild(obj); - return obj; -} - function findForm(node) { // returns the node of the form containing the given node if (node.tagName.toLowerCase() != 'form') { |
