From: gfawcett Date: Sun, 8 Mar 2009 20:01:46 +0000 (+0000) Subject: bugfix: title-lookup error when changing course-code during course-edit. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fc718367d76ebf01c0b39dab863fe0fcfced11ff;p=syrup%2Fmasslnc.git bugfix: title-lookup error when changing course-code during course-edit. git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@152 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/conifer/static/add_new_course.js b/conifer/static/add_new_course.js index f89db1d..40ffd99 100644 --- a/conifer/static/add_new_course.js +++ b/conifer/static/add_new_course.js @@ -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;