$(function(){
- // Show the 'add note' form
- // first, instantiate the fileuploader on page load
- // TODO: connect it to the '^ save' form submit
- // Show the upload lightbox on upload button click
// check if we arrived at this page planning on uploading a note
if(window.location.hash) {
- // Get the first hasgh, remove the # character
+ // Get the first hash, remove the # character
var hash = window.location.hash.substring(1);
if (hash === 'upload-note'){
$('#add-note-form').show();
}
$('#add-note-btn').click(function(){
+ // hide the thankyou message on add-another uploads
+ $('#thankyou-wrapper').hide();
// show the add note form
// TODO: rewrite to .show the form with a slide transition
$('#add-note-form').show();
$('#add-note-btn').hide();
});
+
// Dismiss x click
$(".icon-remove-circle").click(function() {
$("#add-note-form").hide();
{% include 'partial/add_note.html' %}
{% if request.GET.thankyou == '' %}
- <div class="row">
- <div class="ten columns offset-by-one">
+ <div id=thankyou-wrapper class="row">
+ <div class="eight columns offset-by-two">
<div id="thankyou">
<p>
Thank you for uploading
- <a href="{{ request.GET.url }}">{{ request.GET.name }}</a>
+ <a href="{{ request.GET.url }}">{{ request.GET.name }}</a>.
Share another or take a
<a href="https://docs.google.com/a/finalsclub.org/spreadsheet/viewform?usp=sharing&formkey=dFg1WnI2cUVfckZyYnJpZ0ExQmUxSnc6MQ#gid=0" target="_blank">quick survey</a> to help us make KarmaNotes even better.
</p>