summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorashwinishinde2015-07-21 13:49:53 +0530
committerashwinishinde2015-07-21 13:49:53 +0530
commit4a96b70ec8c492b5e94e8f9593616c6943be459f (patch)
tree1c5a3ef1427f62dc9a2c719d37389fcf2c780917 /static
parent0cbaff99c643d296670307af6abae47596248003 (diff)
downloadFOSSEE-Forum-4a96b70ec8c492b5e94e8f9593616c6943be459f.tar.gz
FOSSEE-Forum-4a96b70ec8c492b5e94e8f9593616c6943be459f.tar.bz2
FOSSEE-Forum-4a96b70ec8c492b5e94e8f9593616c6943be459f.zip
Subject: Same time Up and Down Should not work
Description:
Diffstat (limited to 'static')
-rw-r--r--static/website/templates/get-question.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/static/website/templates/get-question.html b/static/website/templates/get-question.html
index db10323..ed257e9 100644
--- a/static/website/templates/get-question.html
+++ b/static/website/templates/get-question.html
@@ -320,6 +320,7 @@
.attr('src', '{% static 'website/images/up1-off.png' %}')
.removeClass('selected');
$('div.vote span.vote-count-post').html(response);
+ $('img.vote-down').css('pointer-events','all');
});
}
/* USER WISHES TO VOTE */
@@ -331,6 +332,7 @@
.attr('src', '{% static 'website/images/up1-on.png' %}')
.addClass('selected');
$('div.vote span.vote-count-post').html(response);
+ $('img.vote-down').css('pointer-events','none');
});
}
});
@@ -353,6 +355,7 @@
.attr('src', '{% static 'website/images/down1-off.png' %}')
.removeClass('selected');
$('div.vote span.vote-count-post').html(response);
+ $('img.vote-up').css('pointer-events','all');
});
}
/* USER WISHES TO VOTE */
@@ -364,6 +367,7 @@
.attr('src', '{% static 'website/images/down1-on.png' %}')
.addClass('selected');
$('div.vote span.vote-count-post').html(response);
+ $('img.vote-up').css('pointer-events','none');
});
}
});
@@ -389,6 +393,8 @@
$('span#span'+id).html(response);
+ $('img#down'+id).css('pointer-events','all');
+
});
}
@@ -404,6 +410,8 @@
.addClass('selected');
$('span#span'+id).html(response);
+ $('img#down'+id).css('pointer-events','none');
+
});
}
@@ -432,6 +440,8 @@
.removeClass('selected');
$('div.ans-vote span#span'+id).html(response);
+
+ $('img#up'+id).css('pointer-events','all')
});
}
@@ -445,12 +455,15 @@
.addClass('selected');
$('div.ans-vote span#span'+id).html(response);
+ $('img#up'+id).css('pointer-events','none')
});
}
});
});
+
+
</script>