From a538a8dad485115ecd70a2793c3dd4258a52e7b8 Mon Sep 17 00:00:00 2001 From: Arvind Date: Mon, 16 Dec 2013 17:47:46 +0530 Subject: [PATCH] Bug fix - Fixing jQuery selector for selecting a checked radio button, due to old/wrong syntax a narrator was unable to publish narration. --- alipi/wsgi/pageEditor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alipi/wsgi/pageEditor.js b/alipi/wsgi/pageEditor.js index 95d2de7..cf47a46 100755 --- a/alipi/wsgi/pageEditor.js +++ b/alipi/wsgi/pageEditor.js @@ -373,10 +373,10 @@ var util = { publish:function (){ var result; - if ($('#loc-select').val() == '' || $('#lang-select').val() == '' || $('#auth-select').val() == '' || ($('#your-check').attr('checked') == undefined && $('#our-check').attr('checked') == undefined )) { + if ($('#loc-select').val() == '' || $('#lang-select').val() == '' || $('input:checked') == undefined) { alert("please furnish all the details"); } else { - if($('#your-check').attr('checked') != undefined) + if($('input:checked') == $("#your-check")) { localStorage.myContent = util.buildDataString(); window.location.href = "http://dev.a11y.in/test.html"; -- 1.7.10.4