To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / vendor / plugins / redmine_tags / assets / javascripts / projects_index.js @ 780:31b3aa308568

History | View | Annotate | Download (500 Bytes)

1 770:fd4b5879fb6d luis
Event.observe(window, 'load', function() {
2
3 776:af852d82b00b luis
});
4
5
6
function toggleFieldsetWithState(this_field){
7 777:facded821cee luis
        id = Element.up(this_field, 'fieldset').id;
8 776:af852d82b00b luis
        // is the fieldset collapsed?
9
        status = $(id).hasClassName("collapsed");
10 777:facded821cee luis
        change_session(id, status);
11 776:af852d82b00b luis
12 777:facded821cee luis
        toggleFieldset(this_field);
13 776:af852d82b00b luis
};
14
15
function change_session(id, nstatus) {
16
        var url = "projects/set_fieldset_status";
17
         var request = new Ajax.Request(url, {
18
                method: 'post',
19
                 parameters: {field_id: id, status: nstatus},
20 777:facded821cee luis
            asynchronous: true
21
          });
22 776:af852d82b00b luis
}