option to prevent changing of school string field when adding a course. Code is comme...
authorCharles Holbrow <charlesholbrow@gmail.com>
Thu, 18 Apr 2013 22:01:32 +0000 (18:01 -0400)
committerCharles Holbrow <charlesholbrow@gmail.com>
Thu, 18 Apr 2013 22:01:32 +0000 (18:01 -0400)
karmaworld/assets/js/lightbox-add-course.js

index 9cd91285ab8c644fd014800141fa02fa99ef6403..1639f2b0985edb566c310a8e88959a79f06d0d2a 100644 (file)
@@ -59,6 +59,9 @@ $(function() {
       console.log(ui.item.value);
       console.log("name");
       console.log(ui.item.label);
+      // don't let the user edit the field anymore
+      //$('#str_school').attr('readonly', true);
+
       // set the school id as the value of the hidden field
       $('#id_school').val(ui.item.real_value);
       // set the School name as the textbox field