Changeset - 2c4431ccf81f
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2010-10-17 08:29:39
ohnobinki@ohnopublishing.net
Guard against one javascript error.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
scripts/scheduleInput.js
Show inline comments
 
@@ -172,13 +172,13 @@ function add_sections(cnum, data)
 
		jQuery('.className' + classNum).autocomplete({
 
			source: "auto.php",
 
		});
 
		jQuery('.className' + classNum).bind('autocompletechange', {'class_num': classNum},
 
			function(event, ui)
 
			    {
 
				if (ui.item.value.indexOf('-'))
 
				if (ui.item && ui.item.value.indexOf('-'))
 
				    {
 
					jQuery.ajax(
 
						      {
 
							  url: 'auto.php',
 
							  data: {'getsections': 1, 'term': ui.item.value},
 
							  context: {'class_num': event.data.class_num},
0 comments (0 inline, 0 general)