summaryrefslogtreecommitdiff
path: root/website/static
diff options
context:
space:
mode:
Diffstat (limited to 'website/static')
-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();