[IMP] improved condition in survey_result.js

bzr revid: dizzy.zala@gmail.com-20140407084114-yvam08p2cawq2aq9
This commit is contained in:
Dharmraj Jhala (OpenERP) 2014-04-07 14:11:14 +05:30
parent f5a24871cb
commit 8df85fdd56
1 changed files with 2 additions and 2 deletions

View File

@ -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){