1. Seph Soliman
  2. basecamp-time-widget

Commits

Seph Soliman  committed a4b9c5b

* disable help items in drop downs

  • Participants
  • Parent commits 1537db9
  • Branches default

Comments (0)

Files changed (1)

File src/js/widget.js

View file
 	var opts = $.extend({}, ajaxOptions);
 	
 	console.log('pulling project todos from project ' + project_id);
-	$("#todos").html('<option value="">Loading to-do items...</option>');
+	$("#todos").html('<option value="" disabled="disabled">Loading to-do items...</option>');
 	
 	opts.url = todoURL;
 	opts.success = function(root) { parseProjectTodoLists(root, project_id); };
 	
 	// * setup the drop down
 	console.log('setting up projects drop down');
-	$("#projects").html('<option value="">Select a project &raquo;</option>');
+	$("#projects").html('<option value="" disabled="disabled">Select a project &raquo;</option>');
 	for(var i in allCompanies) {
 		var cmp = allCompanies[i];
 		var projects = cmp.getProjects();
 	console.log('parsing project todos');
 	
 	todolists = {};
+	$("#todos").html('<option value="" disabled="disabled">Select a to-do &raquo;</option>');
 	$(todoNode).find("todo-lists > todo-list").each(function(i) {
 		var t = $(this);