Skip to content

Commit

Permalink
Move JS file out of new_watchlist namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
saraycp committed Dec 2, 2022
1 parent d46cd8e commit 2a8e72c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/app/assets/javascripts/webui/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
//= require webui/navigation.js
//= require webui/user_profile.js
//= require webui/long_text.js
//= require webui/new_watchlist/collapsible_tooltip.js
//= require webui/collapsible_tooltip.js
//= require webui/request_show_redesign/add_review.js
//= require webui/request_show_redesign/build_results.js
//= require webui/request_show_redesign/rpm_lint_results.js
Expand Down
1 change: 1 addition & 0 deletions src/api/app/assets/javascripts/webui/buildresult.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ function updateRpmlintDisplay(index) {
});
}

// TODO: Stop using toggleBuildInfo in favor of the generic toggleCollapsibleTooltip
function toggleBuildInfo() { // jshint ignore:line
$('.toggle-build-info').on('click', function(){
var replaceTitle = $(this).attr('title') === 'Click to keep it open' ? 'Click to close it' : 'Click to keep it open';
Expand Down
1 change: 0 additions & 1 deletion src/api/app/views/webui/package/_buildstatus.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,4 @@
%strong excluded/disabled

:javascript
// TODO: call toggleCollapsibleTooltip() as soon as the new_watchlist fature is rolled out. Changing the classes in the view is also needed.
toggleBuildInfo();

0 comments on commit 2a8e72c

Please sign in to comment.