File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
ajax_select/static/ajax_select/js Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 189189 window . dismissAddRelatedObjectPopup = function ( win , newId , newRepr ) {
190190 // Iff this is an ajax-select input then close the window and
191191 // trigger didAddPopup
192- var name = window . windowname_to_id ( win . name ) ;
193- var input = $ ( '#' + name ) ;
192+ var input = $ ( '#' + win . name ) ;
194193 if ( input . data ( 'ajax-select' ) ) {
195194 win . close ( ) ;
196195 // newRepr is django's repr of object
201200 djangoDismissAddRelatedObjectPopup ( win , newId , newRepr ) ;
202201 }
203202 }
204- // Django renamed this function in 1.8
205- window . dismissAddAnotherPopup = window . dismissAddRelatedObjectPopup ;
206203
207204 // activate any on page
208205 $ ( window ) . bind ( 'init-autocomplete' , function ( ) {
You can’t perform that action at this time.
0 commit comments