summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorholyantony2015-05-14 12:16:02 +0530
committerholyantony2015-05-14 12:16:02 +0530
commit1806b9d0007f2b28f38cdea65efe0f0eab72dc56 (patch)
tree6a3c1825ea2d56ce7e4287a00f69e4a6bdc0da99 /static
parent5ab212f99c20ec6e9b00a329165051783b9fcbc5 (diff)
downloadFOSSEE-Forum-1806b9d0007f2b28f38cdea65efe0f0eab72dc56.tar.gz
FOSSEE-Forum-1806b9d0007f2b28f38cdea65efe0f0eab72dc56.tar.bz2
FOSSEE-Forum-1806b9d0007f2b28f38cdea65efe0f0eab72dc56.zip
Subject:Fixed a small bug from last commit
Description:
Diffstat (limited to 'static')
-rw-r--r--static/website/templates/new-question.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/static/website/templates/new-question.html b/static/website/templates/new-question.html
index ed2c541..af0e34b 100644
--- a/static/website/templates/new-question.html
+++ b/static/website/templates/new-question.html
@@ -18,7 +18,7 @@
<div class="col-lg-3 col-md-3 col-sm-3">
{% render_field form.category class+="form-control category"%}
</div>
-
+
<!--<div class="col-lg-3 col-md-3 col-sm-3">
{% if category %}
{% render_field form.tutorial class+="form-control" %}
@@ -86,8 +86,10 @@ bkLib.onDomLoaded(function() {
window.onload = function() {
/* your code */
var c2= "{{ category }}";
-
- $("#id_category").val(c2);
+ if(c2 != "None"){
+ $("#id_category").val(c2);
+ }
+
}