Revision 777:facded821cee vendor

View differences:

vendor/plugins/redmine_tags/app/views/projects/_my_projects.rhtml
1
<% if @myproj_status %>
1
<% if @myproj_status=="true" %>
2 2
<fieldset id="my_projects_fieldset" class="collapsible">
3 3
    <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_my_projects) %></legend>
4 4
<% else %>
vendor/plugins/redmine_tags/app/views/projects/index.rhtml
19 19
<div style="clear:both;"></div>
20 20
<% form_tag(:controller => :projects, :action => :index, :method => :get, :id => :project_filtering) do %>
21 21

  
22

  
23
<% if @filter_status %>
22
<% if @filter_status=="true" %>
24 23
<fieldset id="filters_fieldset" class="collapsible">
25 24
  <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend>
26 25
<% else %>
vendor/plugins/redmine_tags/assets/javascripts/projects_index.js
4 4

  
5 5

  
6 6
function toggleFieldsetWithState(this_field){
7
	toggleFieldset(this_field);
8
	
9
	id =  Element.up(this_field, 'fieldset').id;
10
	
7
	id = Element.up(this_field, 'fieldset').id;	
11 8
	// is the fieldset collapsed?
12 9
	status = $(id).hasClassName("collapsed");
10
	change_session(id, status);
13 11
	
14
	change_session(id, status);
12
	toggleFieldset(this_field);
15 13
};
16 14

  
17 15
function change_session(id, nstatus) {
......
19 17
 	var request = new Ajax.Request(url, {
20 18
		method: 'post',
21 19
	 	parameters: {field_id: id, status: nstatus},
22
    asynchronous: true
23
  });
20
    	asynchronous: true
21
  	});
24 22
}
vendor/plugins/redmine_tags/lib/redmine_tags/patches/projects_controller_patch.rb
48 48
          status = params[:status]
49 49

  
50 50
          session[(field + "_status").to_sym] = status
51
          logger.error { "SET - DEBUG-ME #{session.inspect}" }
52

  
51 53
          render :nothing => true
52 54
        end
53 55

  
......
63 65
            @filter_status = false
64 66
          else
65 67
            @filter_status = session[:filters_fieldset_status]
66
          end                  
68
          end                            
67 69
        end
68 70

  
69 71
        # Lists visible projects. Paginator is for top-level projects only
......
71 73
        def filtered_index
72 74
          @project = Project.new
73 75
          filter_projects
74
          
75
          debugger
76
          
77
          logger.error { "JASUS" }
78
          
79 76
          get_fieldset_statuses
80 77

  
81 78
          respond_to do |format|

Also available in: Unified diff