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 @ 785:32d853e2e7ed

History | View | Annotate | Download (518 Bytes)

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