Commit 810d09387a2acfbd61bd5ba0c74859dc02143cd1
1 parent
88e4356b
Exists in
master
and in
5 other branches
Remove dead search code
Showing
2 changed files
with
0 additions
and
45 deletions
Show diff stats
lib/software_communities_plugin.rb
public/mpog-search.js
... | ... | @@ -1,44 +0,0 @@ |
1 | -(function(){ | |
2 | - | |
3 | - function show_institutions_fields() { | |
4 | - jQuery(".institution_fields").show(); | |
5 | - jQuery(".software_fields").hide(); | |
6 | - jQuery(".community_fields").hide(); | |
7 | - } | |
8 | - | |
9 | - function show_software_fields() { | |
10 | - jQuery(".institution_fields").hide(); | |
11 | - jQuery(".software_fields").show(); | |
12 | - jQuery(".community_fields").hide(); | |
13 | - } | |
14 | - | |
15 | - function show_community_fields() { | |
16 | - jQuery(".institution_fields").hide(); | |
17 | - jQuery(".software_fields").hide(); | |
18 | - jQuery(".community_fields").show(); | |
19 | - } | |
20 | - | |
21 | - function display_search_fields_on_page_load() { | |
22 | - var active_search = jQuery(".search_type input[checked='checked']").val(); | |
23 | - | |
24 | - switch(active_search) { | |
25 | - case "Community": show_community_fields(); break; | |
26 | - case "Software": show_software_fields(); break; | |
27 | - case "Institution": show_institutions_fields(); break; | |
28 | - | |
29 | - default: show_community_fields(); | |
30 | - } | |
31 | - } | |
32 | - | |
33 | - function set_events() { | |
34 | - display_search_fields_on_page_load(); | |
35 | - | |
36 | - jQuery("#type_Community").click(show_community_fields); | |
37 | - | |
38 | - jQuery("#type_Software").click(show_software_fields); | |
39 | - | |
40 | - jQuery("#type_Institution").click(show_institutions_fields); | |
41 | - } | |
42 | - | |
43 | - jQuery(document).ready(set_events); | |
44 | -})(); |