#13068: The "Add another [inline object]" javascript doesn't respect
prepopulated_fields settings
-------------------------------------------+--------------------------------
          Reporter:  hejsan                |         Owner:  nobody
            Status:  new                   |     Milestone:  1.2   
         Component:  django.contrib.admin  |       Version:  SVN   
        Resolution:                        |      Keywords:        
             Stage:  Accepted              |     Has_patch:  0     
        Needs_docs:  0                     |   Needs_tests:  0     
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Comment (by robhudson):

 An update.  I added a slug field to an existing project to test this
 myself and also noticed that the HTML output also contains inline
 Javascript that looks like the following:

 {{{
     document.getElementById("id_special_set-
 __prefix__-header_slug").onchange = function() { this._changed = true; };

     document.getElementById("id_special_set-__prefix__-header").onkeyup =
 function() {
         var e = document.getElementById("id_special_set-
 __prefix__-header_slug");
         if (!e._changed) { e.value = URLify(document.getElementById
 ("id_special_set-__prefix__-header").value, 200); }
     }
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13068#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to