From f5a24871cb953410b95dc6578751ad47261042d4 Mon Sep 17 00:00:00 2001 From: "Dharmraj Jhala (OpenERP)" Date: Fri, 4 Apr 2014 18:29:43 +0530 Subject: [PATCH] [IMP] improved js to hide cursor pointer if the same filter is enabled bzr revid: dizzy.zala@gmail.com-20140404125943-l2sz45dk2u529wyb --- 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 838e4318b26..68af4fefd42 100644 --- a/addons/survey/static/src/js/survey_result.js +++ b/addons/survey/static/src/js/survey_result.js @@ -149,7 +149,7 @@ $(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';}} ); $('span.filter-finished').click(function(){ event.preventDefault(); if(document.URL.indexOf("?") == -1 && document.URL.indexOf("filter") == -1){ @@ -158,7 +158,7 @@ $(document).ready(function () { else if (document.URL.indexOf("finished") == -1){ window.location.href = document.URL+'&'+encodeURI('finished'); } - }); + }).hover(function(){if(document.URL.indexOf("finished") != -1){$(this)[0].style.cursor= 'default';}}); console.debug("[survey] Survey Result JS loaded!"); }); \ No newline at end of file