Defect #1159
closedError with Redmine2.2.0
0%
Description
version:
changeset: 230:0f0e70442009 branch: redmine2.x
Have following error with jenkins 1.496:
1. Error at index.html.erb following line:
$('.icon-build-history').buildHistoryController({ Uncaught TypeError: Object [objecet Object] has no method 'buildHistoryController'
2. icon not found:
GET http://192.168.10.132:8080/images/hudson.png 404 (Not Found)
jenkins use jenkins.png instead of hudson.png.
Files
Updated by Haru Iida almost 12 years ago
- Project changed from r-labs to Hudson
- Category deleted (
Hudson Plugin)
Updated by Toshiyuki Ando almost 12 years ago
I fixed No2. could you try latest code?
I'll release new version in weekend.
Updated by Toshiyuki Ando almost 12 years ago
I cant reproduce this problem.
$('.icon-build-history').buildHistoryController({ Uncaught TypeError: Object [objecet Object] has no method 'buildHistoryController'
could you tell me how to reproduce ?
Updated by - - almost 12 years ago
- File hudronerror.png hudronerror.png added
Just config Hudson Jobs and show Hudson tab.
I attached screen. Environment is this:
Environment: Redmine version 2.2.1.stable Ruby version 1.9.3 (x86_64-linux) Rails version 3.2.11 Environment production Database adapter Mysql2 Redmine plugins: redmine_backlogs v0.9.32 redmine_banner 0.0.8 redmine_charts 0.2.0 redmine_code_review 0.6.1 redmine_drafts 0.2.0 redmine_git_branch_hook 0.2.1 redmine_hudson 2.1.1 redmine_importer 1.0 redmine_inline_attach_screenshot 0.4.2 redmine_local_avatars 0.0.3-forked redmine_plugin_views_revisions 0.0.1 redmine_redcarpet_formatter 2.0.1 redmine_scm 0.4.1 redmine_spent_time_column 2.0.0-devel redmine_xls_export 0.2.1
Updated by Toshiyuki Ando almost 12 years ago
- could you access "http://[your_redmine_url]/plugin_assets/redmine_hudson/javascripts/jquery.build_history_controller.js" ?
- could you see "/plugin_assets/redmine_hudson/javascripts/jquery.build_history_controller.js" in source of index page ?
Updated by - - almost 12 years ago
1. could you access "http://[your_redmine_url]/plugin_assets/redmine_hudson/javascripts/jquery.build_history_controller.js" ?
Yes. Got this script:
(function(jQuery) { jQuery.fn.buildHistoryController = function(options){ var options = jQuery.extend({ url: '' }, options); function showBuildHistory(icon, htmlText) { var target = jQuery("#build-history"); target.html(htmlText); target.css("top", icon.position().top + icon.height() + 5 + "px"); target.css("left", icon.position().left + 2 + "px"); target.fadeIn("normal"); } $("body").click(function(e) { if (jQuery(e.target).attr("class") == "icon-build-history") { return; } myParents = jQuery(e.target).parents().map(function() { return jQuery(this).attr("id"); }); if (jQuery.inArray("build-history", myParents) >= 0) { return; } jQuery("#build-history").fadeOut("fast"); }); return this.each(function(i, elem) { jQuery(elem).click(function() { jQuery("#build-histroy").text(""); jQuery("#build-history").hide(); jobId = jQuery(this).attr("id").substring("build-history-".length); jQuery.ajax({ type: "GET", url: options.url, data: "job_id=" + jobId, cache: false, success: function(data, dataType) { showBuildHistory(jQuery(elem), data); }, error: function(request, status, ex) { showBuildHistory(jQuery(elem), "<span>Can't get build history. http-status: " + request.text_status) + "</span>"; }, }); }); }); }; })(jQuery);
could you see "/plugin_assets/redmine_hudson/javascripts/jquery.build_history_controller.js" in source of index page ?
No. index is disabled.
Updated by - - almost 12 years ago
I found removing Redmine Backlogs plugin resolve this problem.
Backlogs include jquery 1.6.2 force but Redmine default jQuery 1.7.x.
This may cause problem.
Following pull request for Backlogs resolve Backlogs and Hudson Plugin conflict.
https://github.com/backlogs/redmine_backlogs/pull/792
This is backlogs's problem. Please close this issue.
regards,
Updated by Toshiyuki Ando over 11 years ago
- Status changed from 新規(New) to 却下(Invalid)