From 8df85fdd56c2bf105c533e075b536257a5548b0f Mon Sep 17 00:00:00 2001 From: "Dharmraj Jhala (OpenERP)" Date: Mon, 7 Apr 2014 14:11:14 +0530 Subject: [PATCH] [IMP] improved condition in survey_result.js bzr revid: dizzy.zala@gmail.com-20140407084114-yvam08p2cawq2aq9 --- addons/survey/static/src/js/survey_result.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/survey/static/src/js/survey_result.js b/addons/survey/static/src/js/survey_result.js index 68af4fefd42..06d600c74f8 100644 --- a/addons/survey/static/src/js/survey_result.js +++ b/addons/survey/static/src/js/survey_result.js @@ -149,10 +149,10 @@ $(document).ready(function () { if(document.URL.indexOf("finished") != -1){ window.location.href = document.URL.replace('?finished&','?').replace('&finished&','&').replace('?finished','').replace('&finished',''); } - }).hover(function(){if(document.URL.indexOf("finished") == -1){$(this)[0].style.cursor= 'default';}} ); + }).hover(function(){if(document.URL.indexOf("finished") == -1){$(this)[0].style.cursor= 'default';}}); $('span.filter-finished').click(function(){ event.preventDefault(); - if(document.URL.indexOf("?") == -1 && document.URL.indexOf("filter") == -1){ + if(document.URL.indexOf("?") == -1){ window.location.href = document.URL+'?'+encodeURI('finished'); } else if (document.URL.indexOf("finished") == -1){