From f355dd793e73f7f0af8cbbc89a2d848146151901 Mon Sep 17 00:00:00 2001 From: Git Date: Fri, 18 Apr 2014 08:00:42 +0000 Subject: [PATCH] Empty commit --- static/functions/upload.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/static/functions/upload.js b/static/functions/upload.js index 71fccf54..bdfd76a5 100644 --- a/static/functions/upload.js +++ b/static/functions/upload.js @@ -272,12 +272,13 @@ function CheckYear() { if (media == "---" || media == "Vinyl" || media == "Soundboard" || media == "Cassette") { media = "old"; } - var x = $('#year').raw(); - if (x.value < 1982 && x.value != '' && media != "old" && !$('#unknown').raw().checked) { + var year = $('#year').val(); + var unknown = $('#unknown').prop('checked'); + if (year < 1982 && year != '' && media != "old" && !unknown) { $('#yearwarning').gshow(); $('#remaster').raw().checked = true; $('#remaster_true').gshow(); - } else if ($('#unknown').raw().checked) { + } else if (unknown) { $('#remaster').raw().checked = true; $('#yearwarning').ghide(); $('#remaster_true').gshow();