Skip to content

Commit

Permalink
SAK-42484 - Extract the string to a properties bundle and use the i18…
Browse files Browse the repository at this point in the history
…n javascript loader to pull it in
  • Loading branch information
maurercw authored and adrianfish committed Dec 10, 2019
1 parent dd49a58 commit 43a0beb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion portal/portal-charon/charon/src/webapp/scripts/jumptotop.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@
};

JumpToTop.prototype.init = function() {
portal.i18n.loadProperties({
resourceClass: 'org.sakaiproject.portal.api.PortalService',
resourceBundle: 'jumptotop',
namespace: 'jumptotop'
});

this.$link = $("<a>");
this.$link.attr("id", "jumptotop");
this.$link.addClass("jumptotop");
this.$link.addClass("hidden");
this.$link.attr("title", "Jump to top");
this.$link.attr("title", portal.i18n.tr('jumptotop', 'jumptotop_title'));

this.hide();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jumptotop_title = Jump to top

0 comments on commit 43a0beb

Please sign in to comment.