removing deep link functionality when uploading from the course list
authorCharles Holbrow <charlesholbrow@gmail.com>
Thu, 21 Mar 2013 21:18:13 +0000 (17:18 -0400)
committerCharles Holbrow <charlesholbrow@gmail.com>
Thu, 21 Mar 2013 21:18:13 +0000 (17:18 -0400)
karmaworld/assets/js/lightboxupload.js
karmaworld/templates/courses/course_list.html

index 0dd94763343196e481f9dcebf408e2d51e4cdd0e..548a4b96e1e44f23f4f5eeec9441178cf549ca00 100644 (file)
@@ -10,7 +10,7 @@ $(function(){
 
     // Get the first hasgh, remove the # character
     var hash = window.location.hash.substring(1);
-    if (hash === 'add-note'){
+    if (hash === 'upload-note'){
       $('#add-note-form').show();
       $('#add-note-btn').hide();
     }
index 240f8fae1399a674c7b68298bcd8c2c5eb0cbef5..190f0336d438cb6dd56fbf7c6e6605d89bf52001 100644 (file)
@@ -124,7 +124,7 @@ $(document).ready(function() {
             <td class="note-count slim">  {{ course.file_count }} </td>
             <td class="school-name">      {{ course.school.name }} </td>
             <td class="course-name">      <a href="{{ course.get_absolute_url }}">{{ course.name }}</a> </td>
-            <td class="upload">           <div class="upload"><a href="{{ course.get_absolute_url }}#add-note"><i class="icon-upload"></i></a></div></td>
+            <td class="upload">           <div class="upload"><a href="{{ course.get_absolute_url }}#upload-note"><i class="icon-upload"></i></a></div></td>
             <td class="instructor-name">  {{ course.instructor_name }} </td>
           </tr>
         {% endfor %}