FOR type IN ctx.added_content.keys;
IF ctx.added_content.$type.status == '3' # status unknown %]
- dojo.addOnLoad(function() {
+ window.addEventListener("load", () => {
var bre_id = '[% ctx.bre_id %]';
var type = '[% type %]';
[% END %]
// enforce removal of ebook API cookies on logout
-dojo.addOnLoad(function() {
+window.addEventListener("load", () => {
var logout_handle = dojo.connect(dojo.byId('#logout_link'), 'onclick', function() {
dojo.forEach(cookie_registry, function(cookie) {
dojo.cookie(cookie, '', {path: '/', expires: '-1h'});
vendors_requiring_password.push('overdrive');
[% END %]
-dojo.addOnLoad(function() {
+window.addEventListener("load", () => {
var handle = dojo.connect(dojo.byId('#login-form-box'), 'onclick', function(evt) {
// disconnect this event since it's one-time-only
// (when we switch to jQuery, we can use .one() here)
dojo.require("openils.widget.AutoSuggest");
/* Set focus, and place the cursor at the end of the input string */
- dojo.addOnLoad(function() {
+ window.addEventListener("load", () => {
/* Don't error out if the object doesn't exist, like on advanced search pages */
if (dojo.byId('search_box')) {
dijit.byId('search_box').focus();
<div id='oils-base-header-content-div'>
<span id='oils-base-header-user-info'> </span>
- <script type="text/javascript">
- /*
- dojo.addOnLoad(function(){
- dojo.byId('oils-base-header-user-info').appendChild(
- document.createTextNode(openils.User.user.usrname()));
- });
- */
- </script>
</div>
vendors_requiring_password.push('overdrive');
[% END %]
-dojo.addOnLoad(function() {
+window.addEventListener("load", () => {
var handle = dojo.connect(dojo.byId('#login-form-box'), 'onclick', function(evt) {
// disconnect this event since it's one-time-only
// (when we switch to jQuery, we can use .one() here)
active_ebook = new Ebook(ebook_action.vendor, ebook_action.title_id);
}
-dojo.addOnLoad(function() {
+window.addEventListener("load", () => {
dojo.forEach(vendor_list, function(v) {
var rel = new Relation(v, patron_id);