Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed unnecessary code from admin_media/js

git-svn-id: http://code.djangoproject.com/svn/django/trunk@450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5144a60efce7bc69ea91873c3ac9906c575decb8 1 parent 65f7e14
Adrian Holovaty authored August 10, 2005
1  django/conf/admin_media/js/SelectBox.js
@@ -51,7 +51,6 @@ var SelectBox = {
51 51
     },
52 52
     add_to_cache: function(id, option) {
53 53
         SelectBox.cache[id].push({ value: option.value, text: option.text, displayed: 1 });
54  
-//         SelectBox.sort(id) // Commented out for performance. Can this be deleted?
55 54
     },
56 55
     cache_contains: function(id, value) {
57 56
         // Check if an item is contained in the cache
17  django/conf/admin_media/js/SelectFilter2.js
@@ -3,24 +3,9 @@ SelectFilter2 - Turns a multiple-select box into a filter interface.
3 3
 
4 4
 Different than SelectFilter because this is coupled to the admin framework.
5 5
 
6  
-Requires SelectBox.js and addevent.js.
  6
+Requires core.js, SelectBox.js and addevent.js.
7 7
 */
8 8
 
9  
-// quickElement(tagType, parentReference, textInChildNode, [, attribute, attributeValue ...]);
10  
-function quickElement() {
11  
-    var obj = document.createElement(arguments[0]);
12  
-    if (arguments[2] != '' && arguments[2] != null) {
13  
-        var textNode = document.createTextNode(arguments[2]);
14  
-        obj.appendChild(textNode);
15  
-    }
16  
-    var len = arguments.length;
17  
-    for (var i = 3; i < len; i += 2) {
18  
-        obj.setAttribute(arguments[i], arguments[i+1]);
19  
-    }
20  
-    arguments[1].appendChild(obj);
21  
-    return obj;
22  
-}
23  
-
24 9
 function findForm(node) {
25 10
     // returns the node of the form containing the given node
26 11
     if (node.tagName.toLowerCase() != 'form') {

0 notes on commit 5144a60

Please sign in to comment.
Something went wrong with that request. Please try again.