forked from thomasklein/redmine2mite
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new version 1.3 - see CHANGELOG for details
- Loading branch information
thomasklein
committed
Oct 18, 2010
1 parent
cc4f7b3
commit 2b3128a
Showing
5 changed files
with
98 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
document.observe("dom:loaded", function() { | ||
|
||
// get the second fieldset with the class 'tabular' | ||
// which contains the fields to append an time entry to the change | ||
var o_fsBookEffort = $$('fieldset.tabular')[1]; | ||
|
||
// if it is does not exist, the user is most probably | ||
// not allowed to create a time entry | ||
if (o_fsBookEffort != null) { | ||
|
||
// if it does exist, append the mite fields created in | ||
// IssueDetailsLayoutHook.view_issues_form_details_bottom | ||
// to the fieldset | ||
|
||
$(o_fsBookEffort).insert($('mite_resources_wrapper'), content); | ||
$('mite_resources_wrapper').setStyle({display: 'block'}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class IssueDetailsLayoutHook < Redmine::Hook::ViewListener | ||
|
||
#****************************** | ||
# Desc missing... | ||
# | ||
def view_issues_form_details_bottom(context = {}) | ||
|
||
issue = context[:issue] | ||
new_fields = MiteHelper::mite_rsrcs_assignment_container(issue.project_id, false) | ||
new_fields += javascript_include_tag('mite_edit_issue', :plugin => 'redmine2mite', :cache => false) | ||
new_fields | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters