File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
ajax_select/static/ajax_select/js Expand file tree Collapse file tree 2 files changed +4
-7
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 ( ) {
Original file line number Diff line number Diff line change 44set -e
55
66# creates a virtualenv
7- virtualenv --no-site-packages AJAXSELECTS
7+ python3 -m venv AJAXSELECTS
88source AJAXSELECTS/bin/activate
99
1010DJANGO=$1
1111if [ " $DJANGO " != " " ]; then
1212 echo " Installing Django $DJANGO :"
13- pip install Django==$DJANGO
13+ AJAXSELECTS/bin/ pip install Django==$DJANGO
1414else
1515 echo " Installing latest django:"
16- pip install django
16+ AJAXSELECTS/bin/ pip install django
1717fi
1818
1919if [ ! -d ./ajax_select ]; then
You can’t perform that action at this time.
0 commit comments