diff options
-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" ] }); -}()); +}); |