social_stream-base 0.15.2 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,83 +0,0 @@
1
- <% content_for :javascript do %>
2
- $(function() {
3
- /**
4
- * the element
5
- */
6
- var $ui = $('#form_filter');
7
- var $ui_really = $('#ul_filter');
8
- /**
9
- * on focus and on click display the dropdown,
10
- * and change the arrow image
11
- */
12
- /*$ui.find('.sb_down').bind('focus click',function()*/
13
- $ui.find('.sb_down').bind('mouseover',function()
14
- {
15
- $ui.find('.sb_down')
16
- .addClass('sb_up')
17
- .removeClass('sb_down')
18
- .andSelf()
19
- .find('.sb_dropdown')
20
- .show();
21
- /*$ui.find('.sb_up')
22
- .hide();*/
23
- });
24
-
25
- /**
26
- * on mouse leave hide the dropdown,
27
- * and change the arrow image
28
- */
29
-
30
- $ui_really.bind('mouseleave',function(){
31
-
32
- $ui.find('.sb_up')
33
- .addClass('sb_down')
34
- .removeClass('sb_up')
35
- .andSelf()
36
- .find('.sb_dropdown')
37
- .hide();
38
- /*$ui.find('.sb_down')
39
- .show();*/
40
- });
41
-
42
- /**
43
- * selecting all checkboxes
44
- */
45
- $ui.find('.sb_dropdown').find('label[for="all"]').prev().bind('click',function(){
46
- $(this).parent().siblings().find(':checkbox').attr('checked',this.checked).attr('disabled',this.checked);
47
- });
48
- });
49
- <% end %>
50
-
51
- <div id="filter_div">
52
- <%= form_tag "/activities/documents", :method => :post ,:id=> 'form_filter', :class => "tie_form",:remote=> true do %>
53
- <span class="sb_down">Filter</span>
54
- <ul class="sb_dropdown" style="display:none;" id="ul_filter">
55
-
56
- <li>
57
- <%= check_box_tag 'types', 'Documents', false, :class => 'accept_tos',:onchange=>'$(\'#form_filter\').submit();'%>
58
- <label for="<%=t('activity.view.documents')%>"><%=t('activity.view.documents')%></label>
59
- </li>
60
- <li>
61
- <%= check_box_tag 'types', 'Audio', false, :class => 'accept_tos',:onchange=>'$(\'#form_filter\').submit();'%>
62
- <label for="t('activity.view.audio')"><%=t('activity.view.audio')%></label>
63
- </li>
64
- <li>
65
- <%= check_box_tag 'types', 'Event', false, :class => 'accept_tos',:onchange=>'$(\'#form_filter\').submit();'%>
66
- <label for="<%=t('activity.view.event')%>"><%=t('activity.view.event')%></label>
67
- </li>
68
- <li>
69
- <%= check_box_tag 'types', 'Picture', false, :class => 'accept_tos',:onchange=>'$(\'#form_filter\').submit();'%>
70
- <label for="<%=t('activity.view.photos')%>"><%=t('activity.view.photos')%></label>
71
- </li>
72
- <li>
73
- <%= check_box_tag 'types', 'Post', false, :class => 'accept_tos',:onchange=>'$(\'#form_filter\').submit();'%>
74
- <label for="<%=t('activity.view.post')%>"><%=t('activity.view.post')%></label>
75
- </li>
76
- <li>
77
- <%= check_box_tag 'types', 'Video', false, :class => 'accept_tos',:onchange=>'$(\'#form_filter\').submit();'%>
78
- <label for="<%=t('activity.view.video')%>"><%=t('activity.view.video')%></label>
79
- </li>
80
- </ul>
81
- <% end %>
82
- </div>
83
-