diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-07-07 07:02:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-07 07:02:32 +0200 |
commit | 6381615a30a2dd1a0a4300834806b8e2e8f84e8e (patch) | |
tree | 6c6e2214b28fc75936e24100731e470de30e1244 /extensions/Review | |
parent | e6d1b6fe2ad6e341ab63c30bde2544e5a8b77b31 (diff) | |
download | bugzilla-6381615a30a2dd1a0a4300834806b8e2e8f84e8e.tar.gz bugzilla-6381615a30a2dd1a0a4300834806b8e2e8f84e8e.tar.xz |
Bug 1377621 - YUI is broken on review history page
Diffstat (limited to 'extensions/Review')
-rw-r--r-- | extensions/Review/template/en/default/pages/review_history.html.tmpl | 28 | ||||
-rw-r--r-- | extensions/Review/web/js/review_history.js | 4 |
2 files changed, 17 insertions, 15 deletions
diff --git a/extensions/Review/template/en/default/pages/review_history.html.tmpl b/extensions/Review/template/en/default/pages/review_history.html.tmpl index 107f69f70..37e270e0e 100644 --- a/extensions/Review/template/en/default/pages/review_history.html.tmpl +++ b/extensions/Review/template/en/default/pages/review_history.html.tmpl @@ -20,21 +20,23 @@ %] <script type="text/javascript"> - YUI({ - base: 'js/yui3/', - combine: false, - groups: { - gallery: { - combine: false, - base: 'js/yui3/', - patterns: { 'gallery-': {} } + $(function () { + YUI({ + base: 'js/yui3/', + combine: false, + groups: { + gallery: { + combine: false, + base: 'js/yui3/', + patterns: { 'gallery-': {} } + } } - } - }).use('bz-review-history', function(Y) { - Y.ReviewHistory.render('#history', '#history-loading'); - var requestee = Y.one('#requestee'); + }).use('bz-review-history', function(Y) { + Y.ReviewHistory.render('#history', '#history-loading'); + var requestee = Y.one('#requestee'); - Y.ReviewHistory.refresh('[% requestee.login FILTER js %]', '[% requestee.name FILTER html FILTER js %]'); + Y.ReviewHistory.refresh('[% requestee.login FILTER js %]', '[% requestee.name FILTER html FILTER js %]'); + }); }); </script> diff --git a/extensions/Review/web/js/review_history.js b/extensions/Review/web/js/review_history.js index 8d016b009..af5132ba1 100644 --- a/extensions/Review/web/js/review_history.js +++ b/extensions/Review/web/js/review_history.js @@ -5,7 +5,7 @@ * This Source Code Form is "Incompatible With Secondary Licenses", as * defined by the Mozilla Public License, v. 2.0. */ -(function () { +$(function () { 'use strict'; YUI.add('bz-review-history', function (Y) { @@ -390,4 +390,4 @@ "gallery-datatable-row-expansion-bmo", "handlebars", "escape", "promise" ] }); -}()); +}); |