summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprashantsinalkar2019-11-05 15:52:43 +0530
committerprashantsinalkar2019-11-05 15:52:43 +0530
commit5bdea7cbcdb11b0f8ffc4f3c9ed86819b1681348 (patch)
treef56e57f6391745b6d12c05ec555c5c4b52f212f3
parent2de06c38bceee5b92d54fadfd619e2d206917b09 (diff)
downloadR_on_Cloud_Web_Interface-5bdea7cbcdb11b0f8ffc4f3c9ed86819b1681348.tar.gz
R_on_Cloud_Web_Interface-5bdea7cbcdb11b0f8ffc4f3c9ed86819b1681348.tar.bz2
R_on_Cloud_Web_Interface-5bdea7cbcdb11b0f8ffc4f3c9ed86819b1681348.zip
removed else statement
-rw-r--r--website/static/website/js/cloud.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/website/static/website/js/cloud.js b/website/static/website/js/cloud.js
index de5d9f3..a34f359 100644
--- a/website/static/website/js/cloud.js
+++ b/website/static/website/js/cloud.js
@@ -146,35 +146,6 @@ $(document.body).ready(function() {
$("#diff-wrapper").hide();
$("#contributor").hide();
$("#databox-wrapper").hide();
- }else{
- $.ajax({
- url: 'get_subcategories/',
- dataType: 'JSON',
- type: 'GET',
- data: {
- maincat_id: $("#main_categories").val(),
- },
- success: function(data) {
- ajax_loader("clear");
- $("#categories").html(
- '');
- $("#categories").html(
- ' <option value="">Select Subcategory</option>'
- );
- var j = 1;
- for (var i = 0; i <
- data.length; i++) {
- $('#categories').append(
- '<option value="' +
- data[i].subcategory_id +
- '">' + j + ' - ' +
- data[i].subcategory +
- '</option>'
- );
- j++;
- }
- }
- });
}
if ($("#categories").val() == 0) {
$("#books-wrapper").hide();