To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / vendor / plugins / redmine_tags / assets / javascripts / projects_index.js @ 778:c118d3389088
History | View | Annotate | Download (500 Bytes)
| 1 |
Event.observe(window, 'load', function() { |
|---|---|
| 2 |
|
| 3 |
}); |
| 4 |
|
| 5 |
|
| 6 |
function toggleFieldsetWithState(this_field){ |
| 7 |
id = Element.up(this_field, 'fieldset').id;
|
| 8 |
// is the fieldset collapsed?
|
| 9 |
status = $(id).hasClassName("collapsed"); |
| 10 |
change_session(id, status); |
| 11 |
|
| 12 |
toggleFieldset(this_field); |
| 13 |
}; |
| 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 |
asynchronous: true |
| 21 |
}); |
| 22 |
} |