From bc01fd7dce7efdbdf738320a073d920858d4715f Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 7 Oct 2013 23:13:41 +0200 Subject: [PATCH] Fixed safety sending --- public_html/media/js/upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/media/js/upload.js b/public_html/media/js/upload.js index 6c6c4832..a3200483 100644 --- a/public_html/media/js/upload.js +++ b/public_html/media/js/upload.js @@ -63,7 +63,7 @@ $(function() var postDom = $(this); var file = postDom.data('file'); var tags = postDom.find('[name=tags]').val(); - var safety = postDom.find('[name=safety]').val(); + var safety = postDom.find('[name=safety]:checked').val(); var fd = new FormData(); fd.append('file', file); fd.append('tags', tags);