File name upload fix
authorCharles Connell <charles@connells.org>
Sat, 5 Apr 2014 13:43:04 +0000 (09:43 -0400)
committerCharles Connell <charles@connells.org>
Sat, 5 Apr 2014 13:43:04 +0000 (09:43 -0400)
karmaworld/assets/css/global.css
karmaworld/assets/css/note_course_pages.css
karmaworld/assets/js/filepicker.js
karmaworld/templates/courses/course_list.html

index d35064a55fb527b2386190dce4db916eb71167e0..bbe8c05e135d5c413fa870b1053df75805bf87cd 100644 (file)
@@ -69,6 +69,7 @@ p {
   margin-top: 20px;
   background: #333333;
   color: #d4d4d4;
+  font-size: 0.8em;
 }
 
 label.inline-label
index be014aa35ebd68d2bf244bf6663fa735b95f9e80..83328423b03dbc73898e09b9fa50f1d79773318d 100644 (file)
@@ -49,8 +49,7 @@ select.note-sort {
   margin-bottom: 20px;
 }
 
-ul.socialaccount_providers li,
-ul#uploaded_files li
+ul.socialaccount_providers li
 {
   display: inline;
 }
index 7bd853d262f10761be5cc91b3fcf308d81e33852..d39d0aee2c14e54b362c7b9a9ceea452060e6cbd 100644 (file)
@@ -6,13 +6,13 @@
 makeFileForm = function(upFile) {
   var _form = document.getElementById('form-template').cloneNode(deep=true);
   // save the Filename to the form name field
-  $(_form.children[0].children[0].children[1]).val(upFile.filename); // replace with upFile name
+  $(_form).find('.intext').val(upFile.filename); // replace with upFile name
   _form.style.display = "inline";
   _form.id = null; // clear the unique id
   // save the FP url to the form
-  $(_form.children[0].children[3].children[0]).val(upFile.url);
+  $(_form).find('.fpurl').val(upFile.url);
   // save the mimetype to the form
-  $(_form.children[0].children[3].children[1]).val(upFile.mimetype);
+  $(_form).find('mimetype').val(upFile.mimetype);
 
   document.getElementById('forms_container').appendChild(_form);
 
index c161f1b548c9237b1dba2ef28d0571ed8e3f1654..06d0335d3c8b7468c97ba9ebe08ea853359aa0b9 100644 (file)
@@ -40,7 +40,7 @@
     <div id="splash" class="museo700">
       <div id="splash_copy" class="row">
         <div class="small-12 large-8 columns large-offset-2">
-          Browse and contribute lecture notes and quizzes from over 100 college courses.
+          Access a growing database of <span class="note_count">{{ note_count }}</span> college lecture notes.
         </div>
       </div>
       <div class="row">