Patch #2285 » 2285_git.diff
| app/views/issues/index.rhtml | ||
|---|---|---|
|
{ :url => { :set_filter => 1 },
|
||
|
:before => 'selectAllOptions("selected_columns");',
|
||
|
:update => "content",
|
||
|
:complete => "apply_filters_observer()",
|
||
|
:with => "Form.serialize('query_form')"
|
||
|
}, :class => 'icon icon-checked' %>
|
||
|
|
||
| app/views/queries/_filters.rhtml | ||
|---|---|---|
|
select.multiple = true;
|
||
|
}
|
||
|
}
|
||
|
function apply_filters_observer() {
|
||
|
$$("#query_form input[type=text]").invoke("observe", "keypress", function(e){
|
||
|
if(e.keyCode == Event.KEY_RETURN) {
|
||
|
<%= remote_function(:url => { :set_filter => 1},
|
||
|
:update => "content",
|
||
|
:with => "Form.serialize('query_form')",
|
||
|
:complete => "e.stop(); apply_filters_observer()") %>
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
Event.observe(document,"dom:loaded", apply_filters_observer);
|
||
|
//]]>
|
||
|
</script>
|
||
- « Previous
- 1
- 2
- Next »