bkerr / Ann Arbor Government Documents

Matt Hampel's document upload / repository application. Brian Kerr has been helping clean it up.

commit 94: 83b6fa086569
parent 93: 959934c9621a
branch: default
Adjust add form to match # of file uploads to messaging. Fixes issue #31.
Brian Kerr / bkerr
9 months ago

Changed (Δ5 bytes):

raw changeset »

templates/add.html (3 lines added, 3 lines removed)

Up to file-list templates/add.html:

19
19
		{% endfor %}
20
20
		<a id="add-another">add another file</a><br />
21
21
		
22
		<p id="more-than-ten">If you have large files (more than 50MB per file) or large collections of files (more than 10), this upload form may not work for you. Please contact us directly at <a href="mailto:info@arborwiki.org">info@arborwiki.org</a>, and we will work with you to coordinate a batch upload.</p>
22
		<p id="more-than-eight">If you have large files (more than 50MB per file) or large collections of files (more than 8), this upload form may not work for you. Please contact us directly at <a href="mailto:info@arborwiki.org">info@arborwiki.org</a>, and we will work with you to coordinate a batch upload.</p>
23
23
		
24
24
		<input type="submit" value="Submit" onclick="this.value = 'Now submitting...'; this.readOnly = true" />
25
25
	</form>
45
45
	var num_forms = 16; // the number of file forms total. 
46
46
	
47
47
	$(document).ready(function() {
48
		jQuery("#more-than-ten").hide();
48
		jQuery("#more-than-eight").hide();
49
49
50
50
		for(hide_i = i; hide_i <= num_forms; hide_i++) {
51
51
			id_to_hide = "#" + prefix + hide_i + suffix;
62
62
			//   'email large collections to ...' )
63
63
			if(i == 10){
64
64
				jQuery("#add-another").hide();
65
				jQuery("#more-than-ten").show();
65
				jQuery("#more-than-eight").show();
66
66
			}		
67
67
   		});
68
68
 	});