bugfix: title-lookup error when changing course-code during course-edit.
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sun, 8 Mar 2009 20:01:46 +0000 (20:01 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sun, 8 Mar 2009 20:01:46 +0000 (20:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@152 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/static/add_new_course.js

index f89db1d..40ffd99 100644 (file)
@@ -3,7 +3,7 @@ function do_init() {
        // code is a SELECT, so we add a callback to lookup titles.
        $('#id_code').change(function() {
            $('#id_title')[0].disabled=true;
-           $.getJSON('ajax_title', {course_code: $(this).val()},
+           $.getJSON('/syrup/course/new/ajax_title', {course_code: $(this).val()},
                      function(resp) {
                          $('#id_title').val(resp.title)
                          $('#id_title')[0].disabled=false;