From 1fc3b826aff28b47048fa7a695a0924fae6a65f8 Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Sat, 5 Apr 2014 09:43:04 -0400 Subject: [PATCH] File name upload fix --- karmaworld/assets/css/global.css | 1 + karmaworld/assets/css/note_course_pages.css | 3 +-- karmaworld/assets/js/filepicker.js | 6 +++--- karmaworld/templates/courses/course_list.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/karmaworld/assets/css/global.css b/karmaworld/assets/css/global.css index d35064a..bbe8c05 100644 --- a/karmaworld/assets/css/global.css +++ b/karmaworld/assets/css/global.css @@ -69,6 +69,7 @@ p { margin-top: 20px; background: #333333; color: #d4d4d4; + font-size: 0.8em; } label.inline-label diff --git a/karmaworld/assets/css/note_course_pages.css b/karmaworld/assets/css/note_course_pages.css index be014aa..8332842 100644 --- a/karmaworld/assets/css/note_course_pages.css +++ b/karmaworld/assets/css/note_course_pages.css @@ -49,8 +49,7 @@ select.note-sort { margin-bottom: 20px; } -ul.socialaccount_providers li, -ul#uploaded_files li +ul.socialaccount_providers li { display: inline; } diff --git a/karmaworld/assets/js/filepicker.js b/karmaworld/assets/js/filepicker.js index 7bd853d..d39d0ae 100644 --- a/karmaworld/assets/js/filepicker.js +++ b/karmaworld/assets/js/filepicker.js @@ -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); diff --git a/karmaworld/templates/courses/course_list.html b/karmaworld/templates/courses/course_list.html index c161f1b..06d0335 100644 --- a/karmaworld/templates/courses/course_list.html +++ b/karmaworld/templates/courses/course_list.html @@ -40,7 +40,7 @@
- Browse and contribute lecture notes and quizzes from over 100 college courses. + Access a growing database of {{ note_count }} college lecture notes.
-- 2.25.1