From: Charles Holbrow Date: Thu, 21 Mar 2013 20:42:23 +0000 (-0400) Subject: upload note styling X-Git-Tag: release-20150131~478 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0200592055178faadafed1757ede4e3b2b187e0c;p=oweals%2Fkarmaworld.git upload note styling --- diff --git a/karmaworld/assets/css/global.css b/karmaworld/assets/css/global.css index c343f48..0716e35 100644 --- a/karmaworld/assets/css/global.css +++ b/karmaworld/assets/css/global.css @@ -762,3 +762,7 @@ legend font: 12px/2em "MuseoSlab-300"; } +.qq-upload-button { + margin-bottom:12px; +} + diff --git a/karmaworld/assets/js/lightboxupload.js b/karmaworld/assets/js/lightboxupload.js index 5f012d4..a49f996 100644 --- a/karmaworld/assets/js/lightboxupload.js +++ b/karmaworld/assets/js/lightboxupload.js @@ -11,14 +11,15 @@ $(function(){ // Get the first hasgh, remove the # character var hash = window.location.hash.substring(1); if (hash === 'add-note'){ - $('#add-note-form').show(); - $('#file-uploader').show(); $('div.upload-status').hide(); + $('#add-note-btn').hide(); } } $('#add-note-btn').click(function(){ + // hide the button added by qq + $('#file-uploader').hide(); // show the add note form // TODO: rewrite to .show the form with a slide transition $('#add-note-form').show(); diff --git a/karmaworld/templates/partial/add_note.html b/karmaworld/templates/partial/add_note.html index 63a1f8d..58c025e 100644 --- a/karmaworld/templates/partial/add_note.html +++ b/karmaworld/templates/partial/add_note.html @@ -5,7 +5,7 @@ //var csrf_token = "{{ csrf_token }}"; - +
{% csrf_token %}
@@ -13,6 +13,9 @@ Uploading note...
+
+ +