From 5bdea7cbcdb11b0f8ffc4f3c9ed86819b1681348 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 5 Nov 2019 15:52:43 +0530 Subject: removed else statement --- website/static/website/js/cloud.js | 29 ----------------------------- 1 file changed, 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( - ' ' - ); - var j = 1; - for (var i = 0; i < - data.length; i++) { - $('#categories').append( - '' - ); - j++; - } - } - }); } if ($("#categories").val() == 0) { $("#books-wrapper").hide(); -- cgit